Searched refs:inet_ntop (Results 1 - 25 of 150) sorted by relevance

123456

/openbsd-current/lib/libc/hidden/arpa/
H A Dinet.h33 PROTO_NORMAL(inet_ntop); variable
/openbsd-current/gnu/usr.bin/perl/cpan/Socket/t/
H A Dsockaddr.t9 inet_ntoa inet_aton inet_ntop inet_pton
30 # inet_ntop, inet_pton
32 skip "No inet_ntop", 5 unless defined eval { inet_pton(AF_INET, "10.20.30.40") };
36 is(inet_ntop(AF_INET, v10.20.30.40), "10.20.30.40", 'inet_ntop AF_INET from v-string');
38 is(inet_ntop(AF_INET, inet_pton(AF_INET, "10.20.30.40")), "10.20.30.40", 'inet_pton->inet_ntop AF_INET roundtrip');
39 is(inet_ntop(AF_INET, inet_aton("10.20.30.40")), "10.20.30.40", 'inet_aton->inet_ntop AF_INET roundtrip');
42 eval { inet_ntop(AF_INE
[all...]
/openbsd-current/regress/sys/netinet6/nd6/
H A Dnd6_una.py13 return inet_ntop(socket.AF_INET6, in6_getnsma(n))
H A Dnd6_dad.py14 return inet_ntop(socket.AF_INET6, in6_getnsma(n))
H A Dnd6_nud.py14 return inet_ntop(socket.AF_INET6, in6_getnsma(n))
H A Dnd6_ar.py14 return inet_ntop(socket.AF_INET6, in6_getnsma(n))
/openbsd-current/lib/libc/net/
H A DMakefile.inc16 inet_net_ntop.c inet_net_pton.c inet_ntoa.c inet_ntop.c inet_pton.c \
29 inet_addr.3 inet_lnaof.3 inet_net_ntop.3 inet_ntop.3 \
H A Dinet_ntop.c1 /* $OpenBSD: inet_ntop.c,v 1.13 2016/09/21 04:38:56 guenther Exp $ */
37 * inet_ntop(af, src, dst, size)
45 inet_ntop(int af, const void *src, char *dst, socklen_t size) function
58 DEF_WEAK(inet_ntop); variable
/openbsd-current/usr.sbin/dhcpleasectl/
H A Ddhcpleasectl.c241 if (inet_ntop(AF_INET, &cei->requested_ip, ipbuf,
244 if (inet_ntop(AF_INET, &cei->mask, maskbuf, sizeof(maskbuf))
249 if (inet_ntop(AF_INET, &cei->routes[i].dst, ipbuf,
252 if (inet_ntop(AF_INET, &cei->routes[i].mask, maskbuf,
255 if (inet_ntop(AF_INET, &cei->routes[i].gw,
273 if (inet_ntop(AF_INET, &cei->nameservers[i],
309 if (inet_ntop(AF_INET, &cei->server_identifier, ipbuf,
313 if (inet_ntop(AF_INET, &cei->dhcp_server, ipbuf, sizeof(ipbuf))
/openbsd-current/sys/netinet6/
H A Dnd6_nbr.c134 inet_ntop(AF_INET6, &ip6->ip6_src, addr, sizeof(addr)),
135 inet_ntop(AF_INET6, &ip6->ip6_dst, addr0, sizeof(addr0)),
270 inet_ntop(AF_INET6, &taddr6, addr, sizeof(addr)),
277 inet_ntop(AF_INET6, &saddr6, addr, sizeof(addr)));
339 inet_ntop(AF_INET6, &saddr6, addr, sizeof(addr))));
341 inet_ntop(AF_INET6, &daddr6, addr, sizeof(addr))));
343 inet_ntop(AF_INET6, &taddr6, addr, sizeof(addr))));
470 __func__, inet_ntop(AF_INET6,
581 inet_ntop(AF_INET6, &ip6->ip6_src, addr, sizeof(addr)),
582 inet_ntop(AF_INET
[all...]
H A Dnd6_rtr.c87 inet_ntop(AF_INET6, &ip6->ip6_src, src, sizeof(src)),
88 inet_ntop(AF_INET6, &ip6->ip6_dst, dst, sizeof(dst)),
121 inet_ntop(AF_INET6, &saddr6, src, sizeof(src))));
154 __func__, inet_ntop(AF_INET6, &saddr6, src, sizeof(src)),
H A Dip6_forward.c115 inet_ntop(AF_INET6, &ip6->ip6_src, src6, sizeof(src6));
116 inet_ntop(AF_INET6, &ip6->ip6_dst, dst6, sizeof(dst6));
203 inet_ntop(AF_INET6, &ip6->ip6_src, src6, sizeof(src6));
204 inet_ntop(AF_INET6, &ip6->ip6_dst, dst6, sizeof(dst6));
/openbsd-current/usr.sbin/rad/
H A Dprintconf.c94 inet_ntop(AF_INET6, &ra_rdnss->rdnss,
110 printf("%snat64 prefix %s/%d {\n", indent, inet_ntop(AF_INET6,
152 printf("\tprefix %s/%d {\n", inet_ntop(AF_INET6,
/openbsd-current/usr.sbin/acme-client/
H A Ddnsproc.c93 inet_ntop(AF_INET,
98 inet_ntop(AF_INET6,
/openbsd-current/include/arpa/
H A Dinet.h128 const char *inet_ntop(int, const void *__restrict, char *__restrict,
/openbsd-current/gnu/usr.bin/perl/cpan/IO-Socket-IP/t/
H A D05local-server-v6.t10 use Socket qw( inet_pton inet_ntop pack_sockaddr_in6 unpack_sockaddr_in6 IN6ADDR_LOOPBACK );
22 my $IN6ADDR_LOOPBACK_HOST = inet_ntop( $AF_INET6, $IN6ADDR_LOOPBACK );
H A D04local-client-v6.t10 use Socket qw( inet_pton inet_ntop pack_sockaddr_in6 unpack_sockaddr_in6 IN6ADDR_LOOPBACK );
22 my $IN6ADDR_LOOPBACK_HOST = inet_ntop( $AF_INET6, $IN6ADDR_LOOPBACK );
/openbsd-current/usr.sbin/tcpdump/
H A Dprint-pflog.c153 if (inet_ntop(hdr->naf, &hdr->saddr, buf,
159 if (inet_ntop(hdr->naf, &hdr->daddr, buf,
/openbsd-current/regress/usr.sbin/rpki-client/
H A Dtest-ip.c73 inet_ntop((afiv == 1) ? AF_INET : AF_INET6, ip.min, buf, sizeof(buf));
75 inet_ntop((afiv == 1) ? AF_INET : AF_INET6, ip.max, buf, sizeof(buf));
/openbsd-current/regress/sys/net/pf_print/
H A Dpf_print_test.c84 if (!inet_ntop(AF_INET6, &addr.v6, str, sizeof(str)))
85 errx(2, "inet_ntop %s", *in);
/openbsd-current/lib/libc/asr/
H A Dasr_debug.c115 snprintf(buf, max, "%s", inet_ntop(AF_INET,
121 snprintf(buf, max, "%s", inet_ntop(AF_INET6,
238 inet_ntop(AF_INET, &s.sin->sin_addr, h, sizeof h);
242 inet_ntop(AF_INET6, &s.sin6->sin6_addr, h, sizeof h);
/openbsd-current/usr.sbin/slaacctl/
H A Dslaacctl.c238 printf("\t\tprefix: %s/%u\n", inet_ntop(AF_INET6,
255 printf("\t\trdns: %s, lifetime: %u\n", inet_ntop(AF_INET6,
296 printf("\t\t%s, %s/%u\n", hbuf, inet_ntop(AF_INET6,
350 printf("\t\t\t%s\n", inet_ntop(AF_INET6,
/openbsd-current/sbin/dhcp6leased/
H A Dprintconf.c58 inet_ntop(AF_INET6, &ia6, ntopbuf, INET6_ADDRSTRLEN);
/openbsd-current/regress/sys/netinet/sendsrcaddr/
H A Druntest.c158 inet_ntop(from_sin->sin_family, &from_sin->sin_addr,
175 inet_ntop(src->sin_family, &src->sin_addr, addr, sizeof(addr));
255 inet_ntop(dst->sin_family, &dst->sin_addr, addr, sizeof(addr));
/openbsd-current/gnu/llvm/lldb/source/Host/common/
H A DSocketAddress.cpp32 // WindowsXP needs an inet_ntop implementation
40 const char *inet_ntop(int af, const void *src, char *dst, socklen_t size) { function
140 if (inet_ntop(GetFamily(), &m_socket_addr.sa_ipv4.sin_addr, str,
145 if (inet_ntop(GetFamily(), &m_socket_addr.sa_ipv6.sin6_addr, str,

Completed in 177 milliseconds

123456