Lines Matching refs:name
12 * IPv6 name to index and index to name function tests.
28 char *name;
53 if (test_case[i].name == NULL) {
58 TEST(if_nametoindex(test_case[i].name));
61 test_case[i].name, TST_RET,
67 if (!pifn || strcmp(test_case[i].name, pifn)) {
70 test_case[i].name, TST_RET,
76 test_case[i].name, TST_RET);
98 /* else, a valid interface-- double check name */
176 "if_nameindex() idx %d name '%s' but if_indextoname(%d) is '%s'",
184 "if_nameindex() idx %d name '%s' but if_indextoname(%s) is %d",
189 tst_res(TINFO, "if_nameindex() idx %d name '%s'",
241 static char name[256];
244 ret = sscanf(ifnames, "%255s", name);
248 tst_res(TINFO, "get interface name from LHOST_IFACES: '%s'", name);
249 test_case[1].name = name;