Lines Matching refs:s_addr
96 uint32_t mask = htonl(address.s_addr);
116 addr->s_addr = 0;
118 memset(&addr->s_addr, 255, (size_t)ocets - 1);
119 memset((unsigned char *)&addr->s_addr + (ocets - 1),
558 addr->s_addr = a->sin_addr.s_addr;
559 net->s_addr = n->sin_addr.s_addr;
563 dst->s_addr = d->sin_addr.s_addr;
565 dst->s_addr = INADDR_ANY;
570 if (addr->s_addr == a->sin_addr.s_addr &&
571 (net == NULL || net->s_addr == n->sin_addr.s_addr))
644 sin.sin_addr.s_addr = iface->addr.s_addr;
665 sin.sin_addr.s_addr = to.s_addr;
726 ip->ip_src.s_addr = source.s_addr;
727 if (dest.s_addr == 0)
728 ip->ip_dst.s_addr = INADDR_BROADCAST;
730 ip->ip_dst.s_addr = dest.s_addr;
770 from->s_addr = INADDR_ANY;
776 from->s_addr = packet.ip.ip_src.s_addr;