/freebsd-13-stable/usr.bin/procstat/ |
H A D | procstat_files.c | 110 if (sin->sin_addr.s_addr == INADDR_ANY) 113 else if (inet_ntop(AF_INET, &sin->sin_addr, buffer2,
|
/freebsd-13-stable/usr.bin/sockstat/ |
H A D | sockstat.c | 262 sin4->sin_addr = *(struct in_addr *)addr; 376 &xladdr->address.sin.sin_addr)) 380 &xladdr->address.sin.sin_addr, 482 &xladdr->address.sin.sin_addr)) 486 &xladdr->address.sin.sin_addr, 527 &xraddr->address.sin.sin_addr)) 531 &xraddr->address.sin.sin_addr, 859 if (inet_lnaof(sstosin(ss)->sin_addr) == INADDR_ANY)
|
/freebsd-13-stable/tools/regression/netinet/msocket/ |
H A D | msocket.c | 372 sin.sin_addr.s_addr = inet_addr(TEST_MADDR); 398 sin.sin_addr.s_addr = inet_addr(TEST_MADDR);
|
/freebsd-13-stable/contrib/sendmail/src/ |
H A D | sm_resolve.c | 445 (void) memcpy((void *)&addr.sin.sin_addr.s_addr, p, size); 447 inet_ntoa(addr.sin.sin_addr)); 798 _res.nsaddr_list[0].sin_addr = *ns; 968 addr.sin.sin_addr.s_addr = inet_addr(token); 969 (void) memmove(data, (void *)&addr.sin.sin_addr.s_addr, 1318 inet_ntoa(_res.nsaddr_list[0].sin_addr),
|
H A D | daemon.c | 1285 if (daemonaddr->sin.sin_addr.s_addr == 0) 1286 daemonaddr->sin.sin_addr.s_addr = 1679 ((d->d_addr.sin.sin_addr.s_addr = inet_addr(addr)) 1697 memmove(&d->d_addr.sin.sin_addr, 2204 clt_addr.sin.sin_addr.s_addr = inet_addr(p); 2205 if (clt_addr.sin.sin_addr.s_addr != INADDR_NONE && 2206 clt_addr.sin.sin_addr.s_addr != 2251 if (clt_addr.sin.sin_addr.s_addr == 0) 2252 clt_addr.sin.sin_addr.s_addr = LocalDaemon ? 2318 addr.sin.sin_addr [all...] |
/freebsd-13-stable/contrib/blacklist/bin/ |
H A D | conf.c | 291 } else if (inet_pton(AF_INET, p, &sin->sin_addr) != -1) 568 addr = &sin->sin_addr; 569 alen = sizeof(sin->sin_addr); 611 size = sizeof(s1->sin_addr); 612 v1 = &s1->sin_addr; 613 v2 = &s2->sin_addr;
|
/freebsd-13-stable/contrib/bsnmp/snmpd/ |
H A D | config.c | 796 sain->sin_addr.s_addr = ntohl(sain->sin_addr.s_addr); 797 ip[0] = sain->sin_addr.s_addr >> 24; 798 ip[1] = sain->sin_addr.s_addr >> 16; 799 ip[2] = sain->sin_addr.s_addr >> 8; 800 ip[3] = sain->sin_addr.s_addr >> 0;
|
/freebsd-13-stable/tests/sys/net/routing/ |
H A D | rtsock_common.h | 431 if (a4->sin_addr.s_addr != b4->sin_addr.s_addr) { 432 inet_ntop(AF_INET, &a4->sin_addr, a_s, sizeof(a_s)); 433 inet_ntop(AF_INET, &b4->sin_addr, b_s, sizeof(b_s)); 536 sin->sin_addr.s_addr = htonl(plen ? ~((1 << (32 - plen)) - 1) : 0); 615 error = inet_pton(AF_INET, addr, &sin->sin_addr);
|
/freebsd-13-stable/sys/net/ |
H A D | if_vxlan.c | 861 addr = &sa->in4.sin_addr; 1047 laddr.in4.sin_addr.s_addr = INADDR_ANY; 1107 laddr.in4.sin_addr.s_addr = INADDR_ANY; 1148 mreq.imr_multiaddr = group->in4.sin_addr; 1149 mreq.imr_interface = local->in4.sin_addr; 1174 source->in4.sin_addr = local->in4.sin_addr; 1216 mreq.imr_multiaddr = group->in4.sin_addr; 1217 mreq.imr_interface = source->in4.sin_addr; 2491 srcaddr = sc->vxl_src_addr.in4.sin_addr; [all...] |
/freebsd-13-stable/lib/libc/net/ |
H A D | getaddrinfo.c | 149 offsetof(struct sockaddr_in, sin_addr), 802 (char *)&((struct sockaddr_in *)addr)->sin_addr, 941 s = (u_char *)&((struct sockaddr_in *)src)->sin_addr; 942 d = (u_char *)&((struct sockaddr_in *)dst)->sin_addr; 1132 if (((u_char *)&sa4->sin_addr)[0] == 169 && 1133 ((u_char *)&sa4->sin_addr)[1] == 254) 1136 if (((u_char *)&sa4->sin_addr)[0] == 10 || 1137 (((u_char *)&sa4->sin_addr)[0] == 172 && 1138 (((u_char *)&sa4->sin_addr)[1] & 0xf0) == 16) || 1139 (((u_char *)&sa4->sin_addr)[ [all...] |
/freebsd-13-stable/sys/netinet/ |
H A D | tcp_usrreq.c | 329 sinp->sin_addr.s_addr != INADDR_ANY) 340 if (IN_MULTICAST(ntohl(sinp->sin_addr.s_addr))) 410 if (IN_MULTICAST(ntohl(sin.sin_addr.s_addr))) { 564 if (IN_MULTICAST(ntohl(sinp->sin_addr.s_addr))) 566 if (ntohl(sinp->sin_addr.s_addr) == INADDR_BROADCAST) 568 if ((error = prison_remote_ip4(td->td_ucred, &sinp->sin_addr)) != 0) 666 if (IN_MULTICAST(ntohl(sin.sin_addr.s_addr))) { 670 if (ntohl(sin.sin_addr.s_addr) == INADDR_BROADCAST) { 675 &sin.sin_addr)) != 0) 1035 if (IN_MULTICAST(ntohl(sinp->sin_addr [all...] |
H A D | sctp_pcb.c | 620 (IN4_ISLOOPBACK_ADDRESS(&sin->sin_addr))) { 623 if ((IN4_ISPRIVATE_ADDRESS(&sin->sin_addr))) { 887 IN4_ISPRIVATE_ADDRESS(&sin->sin_addr)) { 891 &sin->sin_addr) != 0) { 894 if (sin->sin_addr.s_addr == rsin->sin_addr.s_addr) { 966 if (sin->sin_addr.s_addr == rsin->sin_addr.s_addr) { 1067 &sin->sin_addr) != 0) { 1120 if (sin->sin_addr [all...] |
H A D | ip_input.c | 697 if (IA_SIN(ia)->sin_addr.s_addr == ip->ip_dst.s_addr && 721 if (satosin(&ia->ia_broadaddr)->sin_addr.s_addr == 729 if (IA_SIN(ia)->sin_addr.s_addr == INADDR_ANY) { 984 sin->sin_addr = ip->ip_dst; 1062 dest.s_addr = nh->gw4_sa.sin_addr.s_addr;
|
/freebsd-13-stable/lib/libcasper/services/cap_net/tests/ |
H A D | net_test.c | 73 inet_pton(family, ip, &ipaddr.sin_addr); 244 inet_pton(AF_INET, ip, &ipv4.sin_addr); 265 inet_pton(AF_INET, ip, &ipv4.sin_addr); 470 inet_pton(AF_INET, TEST_IPV4, &ipaddrv4.sin_addr); 1028 inet_pton(AF_INET, TEST_BIND_IPV4, &ipv4.sin_addr); 1118 inet_pton(AF_INET, TEST_IPV4, &ipv4.sin_addr); 1229 memcpy((char *)&connaddr.sin_addr.s_addr,
|
/freebsd-13-stable/sbin/natd/ |
H A D | natd.c | 243 addr.sin_addr.s_addr = INADDR_ANY; 273 addr.sin_addr.s_addr = INADDR_ANY; 282 addr.sin_addr.s_addr = INADDR_ANY; 332 addr.sin_addr.s_addr = INADDR_ANY; 685 if (addr.sin_addr.s_addr == INADDR_ANY) 979 LibAliasSetAddress(mla, sin->sin_addr); 981 inet_ntoa(sin->sin_addr), mip->ifMTU);
|
/freebsd-13-stable/sbin/route/ |
H A D | route.c | 555 ((struct sockaddr_in *)(void *)sa)->sin_addr.s_addr == 665 in = ((struct sockaddr_in *)(void *)sa)->sin_addr; 1124 sin_mask->sin_addr.s_addr = htonl(mask); 1291 if (inet_aton(str, &sin->sin_addr) == 0) 1301 if (inet_aton(str, &sin->sin_addr) != 0) 1308 memmove((char *)&sin->sin_addr, hp->h_addr, 1309 MIN((size_t)hp->h_length, sizeof(sin->sin_addr))); 1345 p = (char *)&sin->sin_addr; 1864 inet_ntoa(((struct sockaddr_in *)(void *)sa)->sin_addr));
|
/freebsd-13-stable/lib/libc/resolv/ |
H A D | res_send.c | 186 (srv->sin_addr.s_addr == INADDR_ANY || 187 srv->sin_addr.s_addr == inp->sin_addr.s_addr)) 1142 a4->sin_addr.s_addr == b4->sin_addr.s_addr;
|
/freebsd-13-stable/lib/libc/yp/ |
H A D | yplib.c | 406 &ysd->dom_server_addr.sin_addr.s_addr, 407 sizeof(ysd->dom_server_addr.sin_addr.s_addr)); 436 clnt_sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK); 507 &ysd->dom_server_addr.sin_addr.s_addr, 508 sizeof(ysd->dom_server_addr.sin_addr.s_addr));
|
/freebsd-13-stable/sbin/ggate/ggated/ |
H A D | ggated.c | 381 ip = htonl(((struct sockaddr_in *)(void *)s)->sin_addr.s_addr); 467 ip = htonl(((struct sockaddr_in *)(void *)s)->sin_addr.s_addr); 490 ip = htonl(((struct sockaddr_in *)(void *)s)->sin_addr.s_addr); 844 ip = htonl(((struct sockaddr_in *)(void *)from)->sin_addr.s_addr); 1050 serv.sin_addr.s_addr = bindaddr;
|
/freebsd-13-stable/contrib/opie/ |
H A D | ftpcmd.y | 215 if ((cliport > 1023) && (data_dest.sin_addr.s_addr > 0)) { 630 a = (char *)&data_dest.sin_addr; 634 p = (char *)&his_addr.sin_addr; 635 if (memcmp (a, p, sizeof (data_dest.sin_addr))) 636 memset (a, 0, sizeof (data_dest.sin_addr)); /* XXX */
|
/freebsd-13-stable/sys/netgraph/ |
H A D | ng_ksocket.c | 277 ((u_char *)&sin->sin_addr)[i] = (u_char)val; 344 ((const u_char *)&sin->sin_addr)[0], 345 ((const u_char *)&sin->sin_addr)[1], 346 ((const u_char *)&sin->sin_addr)[2], 347 ((const u_char *)&sin->sin_addr)[3]);
|
/freebsd-13-stable/contrib/sendmail/libmilter/ |
H A D | listener.c | 291 addr.sin.sin_addr.s_addr = INADDR_ANY; 350 addr.sin.sin_addr.s_addr = hid; 400 (void) memmove(&addr.sin.sin_addr,
|
/freebsd-13-stable/sbin/hastd/ |
H A D | proto_tcp.c | 549 return (memcmp(&sin1->sin_addr, &sin2->sin_addr, 550 sizeof(sin1->sin_addr)) == 0);
|
/freebsd-13-stable/contrib/ipfilter/ |
H A D | ip_fil.c | 202 sin->sin_addr.s_addr = inet_addr(addr); 203 if (sin->sin_addr.s_addr == 0) 678 mask.sin_addr.s_addr = 0xffffffff;
|
/freebsd-13-stable/contrib/libpcap/ |
H A D | sockutils.c | 254 if (IN_MULTICAST(ntohl(saddr4->sin_addr.s_addr))) return 0; 1394 if (memcmp(&(((struct sockaddr_in *) first)->sin_addr), 1395 &(((struct sockaddr_in *) second)->sin_addr),
|