Lines Matching defs:s_addr
194 if (ntohl(in.s_addr) == INADDR_LOOPBACK || IN_LINKLOCAL(ntohl(in.s_addr))) {
196 } else if (ntohl(in.s_addr) >= INADDR_UNSPEC_GROUP &&
197 ntohl(in.s_addr) <= INADDR_MAX_LOCAL_GROUP) {
228 u_int32_t i = ntohl(in.s_addr);
269 u_int32_t i = ntohl(in.s_addr);
423 if (sin.sin_addr.s_addr ==
424 iap->ia_addr.sin_addr.s_addr) {
484 ia->ia_addr.sin_addr.s_addr ==
485 addr.sin_addr.s_addr) {
497 (dstaddr.sin_addr.s_addr == INADDR_ANY)) {
762 in_event_data.ia_dstaddr.s_addr = INADDR_ANY;
821 in_event_data.ia_dstaddr.s_addr = INADDR_ANY;
906 i = addr.sin_addr.s_addr;
909 ia->ia_subnetmask = ntohl(ia->ia_sockmask.sin_addr.s_addr = i);
920 in_event_data.ia_dstaddr.s_addr = INADDR_ANY;
962 } else if (addr.sin_addr.s_addr ==
963 ia->ia_addr.sin_addr.s_addr) {
973 ntohl(ia->ia_sockmask.sin_addr.s_addr);
1018 in_event_data.ia_dstaddr.s_addr = INADDR_ANY;
1064 in_event_data.ia_dstaddr.s_addr = INADDR_ANY;
1320 match.s_addr = sin->sin_addr.s_addr;
1321 match.s_addr &= mask.s_addr;
1324 if (match.s_addr != sin->sin_addr.s_addr)
1336 match.s_addr = sin->sin_addr.s_addr;
1353 candidate.s_addr = ((struct sockaddr_in *)&ifa->ifa_addr)->sin_addr.s_addr;
1354 candidate.s_addr &= mask.s_addr;
1356 if (candidate.s_addr == match.s_addr)
1480 TAILQ_REMOVE(INADDR_HASH(ia->ia_addr.sin_addr.s_addr), ia, ia_hash);
1505 TAILQ_INSERT_HEAD(INADDR_HASH(ia->ia_addr.sin_addr.s_addr), ia, ia_hash);
1536 TAILQ_FOREACH(tmp_ifa, INADDR_HASH(ia->ia_addr.sin_addr.s_addr),
1540 if (IA_SIN(tmp_ifa)->sin_addr.s_addr ==
1541 ia->ia_addr.sin_addr.s_addr) {
1551 TAILQ_INSERT_HEAD(INADDR_HASH(ia->ia_addr.sin_addr.s_addr),
1554 TAILQ_INSERT_TAIL(INADDR_HASH(ia->ia_addr.sin_addr.s_addr),
1571 u_int32_t i = ntohl(sin->sin_addr.s_addr);
1677 ia->ia_sockmask.sin_addr.s_addr = htonl(ia->ia_subnetmask);
1688 ia->ia_broadaddr.sin_addr.s_addr =
1690 ia->ia_netbroadcast.s_addr =
1726 addr.s_addr = htonl(INADDR_ALLHOSTS_GROUP);
1759 if (in.s_addr == INADDR_BROADCAST || in.s_addr == INADDR_ANY)
1763 t = ntohl(in.s_addr);
1773 (in.s_addr == ia->ia_broadaddr.sin_addr.s_addr ||
1774 in.s_addr == ia->ia_netbroadcast.s_addr ||
1828 char s_addr[MAX_IPv4_STR_LEN];
1837 (void) inet_ntop(AF_INET, &s->s_addr, s_addr,
1838 sizeof (s_addr));
1839 (void) inet_ntop(AF_INET, &d->s_addr, s_dstaddr,
1845 s_addr, s_dstaddr, err);
1882 ret = snprintf(cp, len, "%u.%u.%u.%u", pin->s_addr & 0xFF,
1883 (pin->s_addr >> 8) & 0xFF, (pin->s_addr >> 16) & 0xFF,
1884 (pin->s_addr >> 24) & 0xFF);