Lines Matching refs:s_addr
387 memcpy(&a->s_addr, p, sizeof(a->s_addr));
530 addr.s_addr = 0;
531 memcpy(&addr.s_addr, p, ocets);
540 memcpy(&addr.s_addr, p, 4);
586 memcpy(&rt->dest.s_addr, p, ocets);
588 rt->net.s_addr = htonl(~0U << (32 - cidr));
592 memcpy(&rt->gate.s_addr, p, 4);
626 addr.s_addr = INADDR_BROADCAST;
627 l = ((dl / sizeof(addr.s_addr)) * ((4 * 4) + 1)) + 1;
630 memcpy(&addr.s_addr, data, sizeof(addr.s_addr));
631 data += sizeof(addr.s_addr);
633 dl -= sizeof(addr.s_addr);
816 memcpy(&route->dest.s_addr, p, 4);
818 memcpy(&route->gate.s_addr, p, 4);
820 route->net.s_addr = route_netmask(route->dest.s_addr);
834 memcpy(&route->gate.s_addr, p, 4);
873 memcpy(p, &_val.s_addr, 4); \
924 iface->net.s_addr == lease->net.s_addr &&
928 dhcp->ciaddr = iface->addr.s_addr;
930 if (type == DHCP_INFORM && iface->addr.s_addr == 0)
931 dhcp->ciaddr = lease->addr.s_addr;
969 if (lease->addr.s_addr && lease->cookie == htonl(MAGIC_COOKIE)) {
972 lease->addr.s_addr != iface->addr.s_addr))
975 if (lease->server.s_addr)
980 if (lease->server.s_addr)
1360 memcpy(&addr.s_addr, data, sizeof(addr.s_addr));
1362 data += sizeof(addr.s_addr);
1414 addr.s_addr = dhcp->yiaddr ? dhcp->yiaddr : dhcp->ciaddr;
1417 net.s_addr = get_netmask(addr.s_addr);
1424 brd.s_addr = addr.s_addr | ~net.s_addr;
1427 addr.s_addr = dhcp->yiaddr & net.s_addr;
1471 lease->addr.s_addr = dhcp->yiaddr;
1473 lease->addr.s_addr = dhcp->ciaddr;
1475 lease->net.s_addr = get_netmask(lease->addr.s_addr);
1477 lease->brd.s_addr = lease->addr.s_addr | ~lease->net.s_addr;
1490 lease->server.s_addr = INADDR_ANY;