Searched refs:ifname_valid (Results 1 – 19 of 19) sorted by relevance
31 TEST(ifname_valid) { in TEST() argument32 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()[all …]
44 if (out_interface && !ifname_valid(out_interface)) in entry_fill_basics()46 if (in_interface && !ifname_valid(in_interface)) in entry_fill_basics()
1376 if (!ifname_valid(rvalue)) { in config_parse_ifname()
84 if (!ifname_valid(ifname)) in parse_interface_with_operstate_range()
179 if (!isempty(name) && !ifname_valid(name)) in network_new()229 if (!ifname_valid(_ifname)) in netdev_new()291 if (!ifname_valid(name)) in link_new()
701 if (r == 0 || !ifname_valid(a)) in veth_extra_parse()707 if (r == 0 || !ifname_valid(b)) { in veth_extra_parse()
493 if (!ifname_valid(j)) { in config_parse_network_zone()
871 if (!ifname_valid(j)) { in parse_argv()887 if (!ifname_valid(optarg)) in parse_argv()912 if (!ifname_valid(optarg)) in parse_argv()929 if (!ifname_valid(optarg)) in parse_argv()946 if (!ifname_valid(optarg)) in parse_argv()
147 static inline bool ifname_valid(const char *p) { in ifname_valid() function
22 if (!ifname_valid(name)) in rtnl_set_link_name()
160 static BUS_DEFINE_SET_TRANSIENT_STRING_WITH_CHECK(ifname, ifname_valid);
2039 if (!ifname_valid(*s)) { in bus_cgroup_set_property()
1068 if (!ifname_valid(rvalue)) { in config_parse_socket_bindtodevice()6000 if (!ifname_valid(word)) { in config_parse_restrict_network_interfaces()
777 if (!ifname_valid(rvalue)) { in config_parse_l2tp_session_name()
778 if (ifname_valid(new_name)) { in link_generate_new_name()
903 !ifname_valid(event->name)) { in rename_netif()
853 if (!ifname_valid(rvalue)) { in config_parse_stacked_netdev()
1372 if (!ifname_valid(rvalue)) { in config_parse_routing_policy_rule_device()
344 if (ifname_valid(ifname)) { in sd_device_new_from_ifname()