Home
last modified time | relevance | path

Searched full:inet_pton (Results 1 – 25 of 45) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_lpm_map.c360 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 Dnetwork_helpers.c362 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 Dtest_sock_addr.c625 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 Drecord+probe_libc_inet_pton.sh2 # 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 Dreuseport_addr_any.c49 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 Dgro.c182 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 Dstress_reuseport_listen.c34 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 Dtcp_fastopen_backup_key.c158 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 Dfin_ack_lat.c58 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 Dsk_connect_zero_addr.c19 inet_pton(AF_INET6, "::", &bind_addr.sin6_addr); in main()
H A Dsk_bind_sendto_listen.c19 inet_pton(AF_INET6, "::", &bind_addr.sin6_addr); in main()
H A Dudpgso_bench_rx.c70 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 Dfib_lookup.c134 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, &params->ipv4_dst); in set_lookup_params()
146 ret = inet_pton(AF_INET, IPV4_IFACE_ADDR, &params->ipv4_src); in set_lookup_params()
147 if (!ASSERT_EQ(ret, 1, "inet_pton(IPV4_IFACE_ADDR)")) in set_lookup_params()
H A Dxdp_metadata.c174 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 Dlwt_reroute.c114 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 Dip_check_defrag.c225 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 Dnormalize_ip.c40 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 Dconnect_close.c79 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 Dnemorad.cpp83 !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 Dpm_nl_ctl.c408 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 Dsnmp_util.cpp77 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 Davoid-attr-unless-wanted.patch18 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 Davoid-attr-unless-wanted.patch18 if not bld.CONFIG_SET('HAVE_INET_PTON'): REPLACE_SOURCE += ' inet_pton.c'
/openbmc/linux/samples/bpf/
H A Dxdp_tx_iptunnel_user.c102 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 Dsudo.inc14 … file://lib/util/inet_pton.c;beginline=3;endline=17;md5=27785c9f5835093eda42aa0816a2d0b4 \

12