| /src/lib/libc/inet/ |
| Makefile.inc | 9 inet_network.c inet_ntoa.c inet_ntop.c inet_pton.c nsap_addr.c
|
| inet_pton.c | 1 /* $NetBSD: inet_pton.c,v 1.8 2012/03/13 21:13:38 christos Exp $ */ 23 static const char rcsid[] = "Id: inet_pton.c,v 1.5 2005/07/28 06:51:47 marka Exp"; 25 __RCSID("$NetBSD: inet_pton.c,v 1.8 2012/03/13 21:13:38 christos Exp $"); 47 __weak_alias(inet_pton,_inet_pton) 59 * inet_pton(af, src, dst) 70 inet_pton(int af, const char *src, void *dst) function in typeref:typename:int 91 * when last arg is 1: inet_pton(). decimal dotted-quad only. 129 /* inet_pton() takes decimal only */ 173 /* inet_pton() takes dotted-quad only. it does not take shorthand. */
|
| /src/tests/net/inpcb/ |
| broadcast_bind.c | 77 rc = inet_pton(AF_INET, argv[1], &uc_addr); 80 err(1, "inet_pton(unicast)"); 82 errx(1, "inet_pton(unicast): error parsing %s", 85 rc = inet_pton(AF_INET, argv[2], &err_addr); 88 err(1, "inet_pton(error)"); 90 errx(1, "inet_pton(error): error parsing %s", argv[2]); 92 rc = inet_pton(AF_INET, argv[3], &bc_addr); 95 err(1, "inet_pton(broadcast)"); 97 errx(1, "inet_pton(broadcast): error parsing %s",
|
| /src/include/arpa/ |
| inet.h | 90 int inet_pton(int, const char * __restrict,
|
| /src/tests/net/if_vlan/ |
| siocXmulti.c | 95 rv = inet_pton(AF_INET, argv[ARG_ADDR], &sin->sin_addr); 101 rv = inet_pton(AF_INET6, argv[ARG_ADDR], &sin6->sin6_addr); 104 errx(1, "inet_pton(%s)", argv[ARG_ADDR]);
|
| /src/tests/net/net/ |
| t_bind.c | 104 inet_pton(sfam, "1.1.1.1", &sin->sin_addr); 112 inet_pton(sfam, "2010:2020:2030:2040:2050:2060:2070:2080",
|
| t_pktinfo_send.c | 74 inet_pton(AF_INET, addr, &sin->sin_addr); 102 inet_pton(AF_INET, addr, &inaddr); 148 inet_pton(AF_INET, src, &addr);
|
| /src/usr.bin/getnameinfo/ |
| getnameinfo.c | 197 } else if (inet_pton(family, address, &addr_in->sin_addr) 209 } else if (inet_pton(family, address, &addr_in6->sin6_addr) 279 if (inet_pton(AF_INET, address, &ipv4_addr) == 1) 282 if (inet_pton(AF_INET6, address, &ipv6_addr) == 1)
|
| /src/usr.sbin/ldpd/ |
| conffile.c | 332 if (inet_pton(AF_INET, line, &conf_ldp_id) != 1) 345 if (inet_pton(AF_INET, peer, &ad) != 1) 428 if (inet_pton(AF_INET, buf, &conf_if->tr_addr) != 1)
|
| /src/dist/pf/usr.sbin/authpf/ |
| authpf.c | 115 if (inet_pton(AF_INET, ipsrc, &ina) != 1 && 116 inet_pton(AF_INET6, ipsrc, &ina) != 1) { 751 if (inet_pton(AF_INET, ipsrc, &addr.pfra_ip4addr) == 1) { 754 } else if (inet_pton(AF_INET6, ipsrc, &addr.pfra_ip6addr) == 1) { 788 if (inet_pton(AF_INET, ipsrc, &target.v4) == 1) 790 else if (inet_pton(AF_INET6, ipsrc, &target.v6) == 1) 793 syslog(LOG_ERR, "inet_pton(%s) failed", ipsrc);
|
| /src/usr.sbin/srtconfig/ |
| srtconfig.c | 180 if (inet_pton(AF_INET,txt_addr,&r.srcmatch.v4) == 1) 187 else if (inet_pton(AF_INET6,txt_addr,&r.srcmatch.v6) == 1) 210 if (inet_pton(r.af,txt_dstaddr,dp) != 1)
|
| /src/distrib/utils/libhack/ |
| gethost.c | 167 if (inet_pton(AF_INET6, p, &host_addr) > 0) { 170 } else if (inet_pton(AF_INET, p, &host_addr) > 0) {
|
| /src/usr.sbin/mld6query/ |
| mld6.c | 107 if (argc == 3 && inet_pton(AF_INET6, argv[1], &maddr) != 1) 175 if (inet_pton(AF_INET6, "ff02::1", &dst.sin6_addr) != 1) 176 errx(1, "inet_pton failed");
|
| /src/tests/lib/libc/net/ |
| h_hostent.c | 181 if (inet_pton(af, *argv, &addr) == -1)
|
| /src/usr.sbin/rpcbind/ |
| rpcbind.c | 406 if (inet_pton(AF_INET, hosts[nhostsbak], 413 if (inet_pton(AF_INET6, 421 if (inet_pton(AF_INET6, hosts[nhostsbak], 428 if (inet_pton(AF_INET, hosts[nhostsbak],
|
| util.c | 349 inet_pton(AF_INET6, RPCB_MULTICAST_ADDR, &mreq6.ipv6mr_multiaddr);
|
| /src/lib/libc/net/ |
| Makefile.inc | 76 inet.3 ntoa.3 inet.3 inet_ntop.3 inet.3 inet_pton.3
|
| gethnamaddr.c | 665 if (inet_pton(af, name, buf) <= 0) { 769 if (inet_pton(AF_INET6, p, &host_addr) > 0) { 773 if (inet_pton(AF_INET, p, &host_addr) <= 0) 1148 addrok = inet_pton(af, p, &host_addrs[naddrs]);
|
| /src/sys/net/npf/ |
| lpm.c | 440 if (inet_pton(AF_INET6, buf, addr) == 1) { 444 if (inet_pton(AF_INET, buf, addr) == 1) {
|
| /src/usr.sbin/npf/npftest/ |
| npftest.c | 276 rumpns_npf_test_init(inet_pton, inet_ntop, random);
|
| /src/lib/libc/rpc/ |
| rpc_generic.c | 738 if (inet_pton(AF_INET, addrstr, &sinp->sin_addr) <= 0) { 755 if (inet_pton(AF_INET6, addrstr, &sin6->sin6_addr) <= 0) {
|
| /src/usr.sbin/inetd/ |
| parse_v2.c | 313 if (inet_pton(AF_INET, sep->se_hostaddr, &tmp)) { 318 if (inet_pton(AF_INET6, sep->se_hostaddr, &tmp)) {
|
| /src/usr.bin/getent/ |
| getent.c | 314 if (inet_pton(AF_INET6, argv[i], (void *)addr) > 0) 316 else if (inet_pton(AF_INET, argv[i], (void *)addr) > 0)
|
| /src/tests/lib/libc/sys/ |
| t_stat.c | 345 ATF_REQUIRE(inet_pton(AF_INET, "127.0.0.1", &iaddr) == 1);
|
| /src/usr.sbin/pf/pfs/ |
| parse.y | 348 if (inet_pton(*af, buf, &host->addr) != 1)
|