Lines Matching refs:ifname_valid
31 TEST(ifname_valid) { in TEST() argument
32 assert_se( ifname_valid("foo")); in TEST()
33 assert_se( ifname_valid("eth0")); in TEST()
35 assert_se(!ifname_valid("0")); in TEST()
36 assert_se(!ifname_valid("99")); in TEST()
37 assert_se( ifname_valid("a99")); in TEST()
38 assert_se( ifname_valid("99a")); in TEST()
40 assert_se(!ifname_valid(NULL)); in TEST()
41 assert_se(!ifname_valid("")); in TEST()
42 assert_se(!ifname_valid(" ")); in TEST()
43 assert_se(!ifname_valid(" foo")); in TEST()
44 assert_se(!ifname_valid("bar\n")); in TEST()
45 assert_se(!ifname_valid(".")); in TEST()
46 assert_se(!ifname_valid("..")); in TEST()
47 assert_se(ifname_valid("foo.bar")); in TEST()
48 assert_se(!ifname_valid("x:y")); in TEST()