Home
last modified time | relevance | path

Searched refs:ifname_valid (Results 1 – 19 of 19) sorted by relevance

/systemd-251/src/test/
Dtest-socket-util.c31 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()
[all …]
/systemd-251/src/shared/
Dfirewall-util-iptables.c44 if (out_interface && !ifname_valid(out_interface)) in entry_fill_basics()
46 if (in_interface && !ifname_valid(in_interface)) in entry_fill_basics()
Dconf-parser.c1376 if (!ifname_valid(rvalue)) { in config_parse_ifname()
/systemd-251/src/network/wait-online/
Dwait-online.c84 if (!ifname_valid(ifname)) in parse_interface_with_operstate_range()
/systemd-251/src/network/generator/
Dnetwork-generator.c179 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()
/systemd-251/src/nspawn/
Dnspawn-network.c701 if (r == 0 || !ifname_valid(a)) in veth_extra_parse()
707 if (r == 0 || !ifname_valid(b)) { in veth_extra_parse()
Dnspawn-settings.c493 if (!ifname_valid(j)) { in config_parse_network_zone()
Dnspawn.c871 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()
/systemd-251/src/basic/
Dsocket-util.h147 static inline bool ifname_valid(const char *p) { in ifname_valid() function
/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-util.c22 if (!ifname_valid(name)) in rtnl_set_link_name()
/systemd-251/src/core/
Ddbus-socket.c160 static BUS_DEFINE_SET_TRANSIENT_STRING_WITH_CHECK(ifname, ifname_valid);
Ddbus-cgroup.c2039 if (!ifname_valid(*s)) { in bus_cgroup_set_property()
Dload-fragment.c1068 if (!ifname_valid(rvalue)) { in config_parse_socket_bindtodevice()
6000 if (!ifname_valid(word)) { in config_parse_restrict_network_interfaces()
/systemd-251/src/network/netdev/
Dl2tp-tunnel.c777 if (!ifname_valid(rvalue)) { in config_parse_l2tp_session_name()
/systemd-251/src/udev/net/
Dlink-config.c778 if (ifname_valid(new_name)) { in link_generate_new_name()
/systemd-251/src/udev/
Dudev-event.c903 !ifname_valid(event->name)) { in rename_netif()
/systemd-251/src/network/
Dnetworkd-network.c853 if (!ifname_valid(rvalue)) { in config_parse_stacked_netdev()
Dnetworkd-routing-policy-rule.c1372 if (!ifname_valid(rvalue)) { in config_parse_routing_policy_rule_device()
/systemd-251/src/libsystemd/sd-device/
Dsd-device.c344 if (ifname_valid(ifname)) { in sd_device_new_from_ifname()