Home
last modified time | relevance | path

Searched refs:in_addr_from_string (Results 1 – 24 of 24) sorted by relevance

/systemd-251/src/network/
Dtest-network.c27 assert_se(in_addr_from_string(AF_INET, "0:0:0:0:0:FFFF:204.152.189.116", &a) < 0); in test_deserialize_in_addr()
28 assert_se(in_addr_from_string(AF_INET6, "192.168.0.1", &d) < 0); in test_deserialize_in_addr()
30 assert_se(in_addr_from_string(AF_INET, "192.168.0.1", &a) >= 0); in test_deserialize_in_addr()
31 assert_se(in_addr_from_string(AF_INET, "192.168.0.2", &b) >= 0); in test_deserialize_in_addr()
32 assert_se(in_addr_from_string(AF_INET, "192.168.0.3", &c) >= 0); in test_deserialize_in_addr()
33 assert_se(in_addr_from_string(AF_INET6, "0:0:0:0:0:FFFF:204.152.189.116", &d) >= 0); in test_deserialize_in_addr()
34 assert_se(in_addr_from_string(AF_INET6, "::1", &e) >= 0); in test_deserialize_in_addr()
35 assert_se(in_addr_from_string(AF_INET6, "1:0:0:0:0:0:0:8", &f) >= 0); in test_deserialize_in_addr()
206 assert_se(in_addr_from_string(AF_INET, "192.168.3.9", &a1->in_addr) >= 0); in test_address_equality()
208 assert_se(in_addr_from_string(AF_INET, "192.168.3.9", &a2->in_addr) >= 0); in test_address_equality()
[all …]
Dnetworkd-address-pool.c55 r = in_addr_from_string(family, p, &u); in address_pool_new_from_string()
Dnetworkd-ipv6-proxy-ndp.c157 r = in_addr_from_string(AF_INET6, rvalue, &buffer); in config_parse_ipv6_proxy_ndp_address()
Dnetworkd-dhcp-server-static-lease.c136 r = in_addr_from_string(AF_INET, rvalue, &addr); in config_parse_dhcp_static_lease_address()
Dnetworkd-dhcp-server.c226 if (in_addr_from_string(AF_INET, *i, &ia) < 0) in link_push_uplink_to_dhcp_server()
681 r = in_addr_from_string(AF_INET, w, &a); in config_parse_dhcp_server_emit()
Dnetworkd-dhcp-common.c825 r = in_addr_from_string(AF_INET, p, &addr); in config_parse_dhcp_send_option()
837 r = in_addr_from_string(AF_INET6, p, &addr); in config_parse_dhcp_send_option()
Dnetworkd-address-generation.c401 r = in_addr_from_string(AF_INET6, addr, &buffer); in config_parse_address_generation_type()
Dnetworkd-radv.c1125 r = in_addr_from_string(AF_INET6, w, &a); in config_parse_radv_dns()
Dnetworkd-route.c1900 r = in_addr_from_string(AF_INET, "169.254.0.0", &n->dst); in network_add_ipv4ll_route()
2059 r = in_addr_from_string(n->family, rvalue, &n->prefsrc); in config_parse_preferred_src()
Dnetworkd-address.c1559 r = in_addr_from_string(AF_INET, rvalue, &u); in config_parse_broadcast()
/systemd-251/src/test/
Dtest-in-addr-util.c140 assert_se(in_addr_from_string(AF_INET, "192.168.10.1", &a) >= 0); in TEST()
167 assert_se(in_addr_from_string(AF_INET6, "fd00::1", &a) >= 0); in TEST()
196 assert_se(in_addr_from_string(f, a, &ua) >= 0); in test_in_addr_prefix_intersect_one()
197 assert_se(in_addr_from_string(f, b, &ub) >= 0); in test_in_addr_prefix_intersect_one()
233 assert_se(in_addr_from_string(f, before, &ubefore) >= 0); in test_in_addr_prefix_next_one()
239 assert_se(in_addr_from_string(f, after, &uafter) >= 0); in test_in_addr_prefix_next_one()
271 assert_se(in_addr_from_string(f, before, &ubefore) >= 0); in test_in_addr_prefix_nth_one()
277 assert_se(in_addr_from_string(f, after, &uafter) >= 0); in test_in_addr_prefix_nth_one()
318 assert_se(in_addr_from_string(family, in, &a) >= 0); in test_in_addr_prefix_range_one()
324 assert_se(in_addr_from_string(family, expected_start, &es) >= 0); in test_in_addr_prefix_range_one()
[all …]
Dtest-firewall-util.c24 assert_se(in_addr_from_string(AF_INET6, "dead::beef", &u1) >= 0); in test_v6()
25 assert_se(in_addr_from_string(AF_INET6, "1c3::c01d", &u2) >= 0); in test_v6()
52 assert_se(in_addr_from_string(AF_INET, str, u) >= 0); in parse_addr()
Dtest-socket-netlink.c235 assert_se(in_addr_from_string(f, a, &ua) >= 0); in test_in_addr_ifindex_to_string_one()
/systemd-251/src/shared/
Dsocket-netlink.c333 r = in_addr_from_string(family, ip_str, &a); in in_addr_port_ifindex_name_from_string_auto()
338 r = in_addr_from_string(AF_INET6, s, &a); in in_addr_port_ifindex_name_from_string_auto()
352 r = in_addr_from_string(family, ip_str, &a); in in_addr_port_ifindex_name_from_string_auto()
364 r = in_addr_from_string(family, s, &a); in in_addr_port_ifindex_name_from_string_auto()
Dconf-parser.c1852 r = in_addr_from_string(ltype, rvalue, &a); in config_parse_in_addr_non_null()
/systemd-251/src/basic/
Din-addr-util.c543 int in_addr_from_string(int family, const char *s, union in_addr_union *ret) { in in_addr_from_string() function
562 r = in_addr_from_string(AF_INET, s, ret); in in_addr_from_string_auto()
569 r = in_addr_from_string(AF_INET6, s, ret); in in_addr_from_string_auto()
797 r = in_addr_from_string(family, l, &buffer); in in_addr_prefix_from_string()
Din-addr-util.h86 int in_addr_from_string(int family, const char *s, union in_addr_union *ret);
Dether-addr-util.c200 r = in_addr_from_string(family, s, &a); in parse_hw_addr_full()
/systemd-251/src/libsystemd-network/
Dfuzz-dhcp-server-relay.c31 assert_se(in_addr_from_string(AF_INET, "192.168.5.1", &relay_address) >= 0); in LLVMFuzzerTestOneInput()
Dtest-acd.c67 assert_se(in_addr_from_string(AF_INET, address, &pa) >= 0); in test_acd()
/systemd-251/src/fstab-generator/
Dfstab-generator.c723 r = in_addr_from_string(AF_INET6, a, &u); in sysroot_is_nfsroot()
735 if (in_addr_from_string(AF_INET, a, &u) >= 0) in sysroot_is_nfsroot()
/systemd-251/src/network/netdev/
Dbond.c269 r = in_addr_from_string(AF_INET, n, &ip); in config_parse_arp_ip_target_address()
Dtunnel.c888 r = in_addr_from_string(AF_INET, rvalue, &buffer); in config_parse_tunnel_key()
/systemd-251/src/network/generator/
Dnetwork-generator.c553 r = in_addr_from_string(family, buf, ret); in parse_ip_address_one()