/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_lpm_map.c | 360 inet_pton(AF_INET, "192.168.0.0", key_ipv4->data); in test_lpm_ipaddr() 365 inet_pton(AF_INET, "192.168.0.0", key_ipv4->data); in test_lpm_ipaddr() 370 inet_pton(AF_INET, "192.168.128.0", key_ipv4->data); in test_lpm_ipaddr() 375 inet_pton(AF_INET, "192.168.1.0", key_ipv4->data); in test_lpm_ipaddr() 380 inet_pton(AF_INET, "192.168.0.0", key_ipv4->data); in test_lpm_ipaddr() 385 inet_pton(AF_INET6, "2a00:1450:4001:814::200e", key_ipv6->data); in test_lpm_ipaddr() 393 inet_pton(AF_INET, "192.168.128.23", key_ipv4->data); in test_lpm_ipaddr() 397 inet_pton(AF_INET, "192.168.0.1", key_ipv4->data); in test_lpm_ipaddr() 401 inet_pton(AF_INET6, "2a00:1450:4001:814::", key_ipv6->data); in test_lpm_ipaddr() 405 inet_pton(AF_INET6, "2a00:1450:4001:814::1", key_ipv6->data); in test_lpm_ipaddr() [all …]
|
H A D | network_helpers.c | 362 inet_pton(AF_INET, addr_str, &sin->sin_addr) != 1) { in make_sockaddr() 363 log_err("inet_pton(AF_INET, %s)", addr_str); in make_sockaddr() 376 inet_pton(AF_INET6, addr_str, &sin6->sin6_addr) != 1) { in make_sockaddr() 377 log_err("inet_pton(AF_INET6, %s)", addr_str); in make_sockaddr()
|
H A D | test_sock_addr.c | 625 if (inet_pton(domain, ip, (void *)&addr4->sin_addr) != 1) { in mk_sockaddr() 635 if (inet_pton(domain, ip, (void *)&addr6->sin6_addr) != 1) { in mk_sockaddr() 753 if (inet_pton(AF_INET, SRC4_REWRITE_IP, (void *)&src4_rw_ip) != 1) { in sendmsg4_rw_asm_prog_load() 816 if (inet_pton(AF_INET6, SRC6_REWRITE_IP, (void *)&src6_rw_ip) != 1) { in sendmsg6_rw_dst_asm_prog_load() 1015 if (inet_pton(domain, SRC4_IP, in init_pktinfo() 1024 if (inet_pton(domain, SRC6_IP, in init_pktinfo()
|
/openbmc/linux/tools/perf/tests/shell/ |
H A D | record+probe_libc_inet_pton.sh | 2 # probe libc's inet_pton & backtrace it with ping 4 # Installs a probe on libc's inet_pton function, that will use uprobes, 17 nm -Dg $libc 2>/dev/null | grep -F -q inet_pton || exit 254 19 event_pattern='probe_libc:inet_pton(\_[[:digit:]]+)?' 23 event_name=$(perf probe -f -x $libc -a inet_pton 2>&1 | tail -n +2 | head -n -5 | \ 24 grep -P -o "$event_pattern(?=[[:space:]]\(on inet_pton in $libc\))") 37 echo ".*inet_pton\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | reuseport_addr_any.c | 49 else if (!inet_pton(family, addr_str, &addr4.sin_addr.s_addr)) in build_rcv_fd() 50 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd() 59 else if (!inet_pton(family, addr_str, &addr6.sin6_addr)) in build_rcv_fd() 60 error(1, errno, "inet_pton failed: %s", addr_str); in build_rcv_fd() 117 if (!inet_pton(family, IP4_ADDR, &daddr4.sin_addr.s_addr)) in connect_and_send() 118 error(1, errno, "inet_pton failed: %s", IP4_ADDR); in connect_and_send() 130 if (!inet_pton(family, IP6_ADDR, &daddr6.sin6_addr)) in connect_and_send() 131 error(1, errno, "inet_pton failed: %s", IP6_ADDR); in connect_and_send()
|
H A D | gro.c | 182 if (inet_pton(AF_INET6, addr6_src, &ph6.saddr) != 1) in tcp_checksum() 184 if (inet_pton(AF_INET6, addr6_dst, &ph6.daddr) != 1) in tcp_checksum() 191 if (inet_pton(AF_INET, addr4_src, &ph4.saddr) != 1) in tcp_checksum() 192 error(1, errno, "inet_pton source ip pseudo"); in tcp_checksum() 193 if (inet_pton(AF_INET, addr4_dst, &ph4.daddr) != 1) in tcp_checksum() 194 error(1, errno, "inet_pton dest ip pseudo"); in tcp_checksum() 233 if (inet_pton(AF_INET6, addr6_src, &ip6h->saddr) != 1) in fill_networklayer() 234 error(1, errno, "inet_pton source ip6"); in fill_networklayer() 235 if (inet_pton(AF_INET6, addr6_dst, &ip6h->daddr) != 1) in fill_networklayer() 236 error(1, errno, "inet_pton dest ip6"); in fill_networklayer() [all …]
|
H A D | stress_reuseport_listen.c | 34 err = inet_pton(AF_INET6, IP6_LADDR_START, &sa6.sin6_addr); in bind_reuseport_sock6() 36 error(1, err, "inet_pton(%s)", IP6_LADDR_START); in bind_reuseport_sock6()
|
H A D | tcp_fastopen_backup_key.c | 158 if (!inet_pton(family, IP4_ADDR, &daddr4.sin_addr.s_addr)) in connect_and_send() 159 error(1, errno, "inet_pton failed: %s", IP4_ADDR); in connect_and_send() 171 if (!inet_pton(family, IP6_ADDR, &daddr6.sin6_addr)) in connect_and_send() 172 error(1, errno, "inet_pton failed: %s", IP6_ADDR); in connect_and_send()
|
H A D | fin_ack_lat.c | 58 if (inet_pton(AF_INET, "127.0.0.1", &addr.sin_addr) <= 0) in client() 59 error(-1, errno, "inet_pton"); in client()
|
H A D | sk_connect_zero_addr.c | 19 inet_pton(AF_INET6, "::", &bind_addr.sin6_addr); in main()
|
H A D | sk_bind_sendto_listen.c | 19 inet_pton(AF_INET6, "::", &bind_addr.sin6_addr); in main()
|
H A D | udpgso_bench_rx.c | 70 if (inet_pton(AF_INET, str_addr, &(addr4->sin_addr)) != 1) in setup_sockaddr() 76 if (inet_pton(AF_INET6, str_addr, &(addr6->sin6_addr)) != 1) in setup_sockaddr()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | fib_lookup.c | 134 if (inet_pton(AF_INET6, test->daddr, params->ipv6_dst) == 1) { in set_lookup_params() 136 ret = inet_pton(AF_INET6, IPV6_IFACE_ADDR, params->ipv6_src); in set_lookup_params() 137 if (!ASSERT_EQ(ret, 1, "inet_pton(IPV6_IFACE_ADDR)")) in set_lookup_params() 142 ret = inet_pton(AF_INET, test->daddr, ¶ms->ipv4_dst); in set_lookup_params() 146 ret = inet_pton(AF_INET, IPV4_IFACE_ADDR, ¶ms->ipv4_src); in set_lookup_params() 147 if (!ASSERT_EQ(ret, 1, "inet_pton(IPV4_IFACE_ADDR)")) in set_lookup_params()
|
H A D | xdp_metadata.c | 174 ASSERT_EQ(inet_pton(FAMILY, TX_ADDR, &iph->saddr), 1, "inet_pton(TX_ADDR)"); in generate_packet() 175 ASSERT_EQ(inet_pton(FAMILY, RX_ADDR, &iph->daddr), 1, "inet_pton(RX_ADDR)"); in generate_packet()
|
H A D | lwt_reroute.c | 114 err = inet_pton(AF_INET, target_ip, &addr.sin_addr); in overflow_fq() 115 if (!ASSERT_EQ(err, 1, "inet_pton")) in overflow_fq()
|
H A D | ip_check_defrag.c | 225 inet_pton(AF_INET6, VETH0_ADDR6, &c->sin6_addr); in test_bpf_ip_check_defrag_ok() 232 inet_pton(AF_INET, VETH0_ADDR, &c->sin_addr); in test_bpf_ip_check_defrag_ok()
|
/openbmc/google-misc/subprojects/ncsid/src/ |
H A D | normalize_ip.c | 40 if (inet_pton(af, argv[1], &buf) != 1) in main() 43 if (inet_pton(af, argv[1], &buf) != 1) in main()
|
/openbmc/linux/tools/testing/selftests/netfilter/ |
H A D | connect_close.c | 79 inet_pton(AF_INET, "127.0.0.1", &src.sin_addr); in accept_loop() 96 inet_pton(AF_INET, "127.0.0.1", &dst.sin_addr); in connect_loop()
|
/openbmc/google-misc/subprojects/nemora-postd/ |
H A D | nemorad.cpp | 83 !inet_pton(AF_INET, udp_address_v4_str.c_str(), &udp_address_v4)) in main() 100 !inet_pton(AF_INET6, udp_address_v6_str.c_str(), &udp_address_v6)) in main()
|
/openbmc/linux/tools/testing/selftests/net/mptcp/ |
H A D | pm_nl_ctl.c | 408 if (inet_pton(AF_INET, params[arg], RTA_DATA(rta))) { in dsf() 412 } else if (inet_pton(AF_INET6, params[arg], RTA_DATA(rta))) { in dsf() 522 if (inet_pton(AF_INET, params[arg], RTA_DATA(rta))) { in csf() 526 } else if (inet_pton(AF_INET6, params[arg], RTA_DATA(rta))) { in csf() 659 if (inet_pton(AF_INET, argv[2], RTA_DATA(rta))) { in announce_addr() 663 } else if (inet_pton(AF_INET6, argv[2], RTA_DATA(rta))) { in announce_addr() 783 if (inet_pton(AF_INET, argv[2], RTA_DATA(rta))) { in add_addr() 787 } else if (inet_pton(AF_INET6, argv[2], RTA_DATA(rta))) { in add_addr() 926 if (inet_pton(AF_INET, argv[3], RTA_DATA(rta))) { in del_addr() 930 } else if (inet_pton(AF_INET6, argv[3], RTA_DATA(rta))) { in del_addr() [all …]
|
/openbmc/phosphor-snmp/ |
H A D | snmp_util.cpp | 77 int isValid = inet_pton(AF_INET, ipaddress, buf); in resolveAddress() 86 int isValid6 = inet_pton(AF_INET6, ipaddress, buf); in resolveAddress()
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/libtalloc/libtalloc/ |
H A D | avoid-attr-unless-wanted.patch | 18 if not bld.CONFIG_SET('HAVE_INET_PTON'): REPLACE_SOURCE += ' inet_pton.c'
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/libtevent/libtevent/ |
H A D | avoid-attr-unless-wanted.patch | 18 if not bld.CONFIG_SET('HAVE_INET_PTON'): REPLACE_SOURCE += ' inet_pton.c'
|
/openbmc/linux/samples/bpf/ |
H A D | xdp_tx_iptunnel_user.c | 102 if (inet_pton(AF_INET6, ipstr, addr) == 1) { in parse_ipstr() 104 } else if (inet_pton(AF_INET, ipstr, addr) == 1) { in parse_ipstr()
|
/openbmc/openbmc/poky/meta/recipes-extended/sudo/ |
H A D | sudo.inc | 14 … file://lib/util/inet_pton.c;beginline=3;endline=17;md5=27785c9f5835093eda42aa0816a2d0b4 \
|