Lines Matching refs:s_addr
246 iface->state->lease.addr.s_addr = 0; in drop_dhcp()
347 a = iface->addr.s_addr; in send_message()
348 iface->addr.s_addr = 0; in send_message()
352 iface->addr.s_addr = a; in send_message()
353 from.s_addr = dhcp->ciaddr; in send_message()
354 if (from.s_addr) in send_message()
355 to.s_addr = state->lease.server.s_addr; in send_message()
357 to.s_addr = 0; in send_message()
358 if (to.s_addr && to.s_addr != INADDR_BROADCAST) { in send_message()
426 if (iface->addr.s_addr == 0) { in start_expire()
428 iface->state->lease.addr.s_addr = 0; in start_expire()
454 addr.s_addr = dhcp->yiaddr; in log_dhcp()
575 lease->addr.s_addr = dhcp->yiaddr; in handle_dhcp()
579 lease->server.s_addr = INADDR_ANY; in handle_dhcp()
642 iface->addr.s_addr != state->offer->yiaddr) in handle_dhcp()
646 addr.s_addr = state->offer->yiaddr; in handle_dhcp()
685 i = whitelisted_ip(iface->state->options, from.s_addr); in handle_dhcp_packet()
692 blacklisted_ip(iface->state->options, from.s_addr) == 1) in handle_dhcp_packet()
700 iface->dst.s_addr != from.s_addr) in handle_dhcp_packet()
980 !IN_LINKLOCAL(htonl(iface->addr.s_addr))) in start_discover()
982 if (IN_LINKLOCAL(htonl(iface->state->fail.s_addr))) in start_discover()
1025 iface->state->lease.server.s_addr = 0; in start_rebind()
1046 dhcp->yiaddr = addr->s_addr; in dhcp_message_new()
1048 if (mask && mask->s_addr != INADDR_ANY) { in dhcp_message_new()
1050 *p++ = sizeof(mask->s_addr); in dhcp_message_new()
1051 memcpy(p, &mask->s_addr, sizeof(mask->s_addr)); in dhcp_message_new()
1052 p+= sizeof(mask->s_addr); in dhcp_message_new()
1065 if (ifo->req_addr.s_addr != INADDR_ANY) in handle_3rdparty()
1101 iface->addr.s_addr = iface->state->options->req_addr.s_addr; in start_inform()
1102 iface->net.s_addr = iface->state->options->req_mask.s_addr; in start_inform()
1146 iface->state->lease.server.s_addr = 0; in start_reboot()
1219 iface->addr.s_addr) in start_interface()
1237 iface->state->lease.addr.s_addr = 0; in start_interface()
1391 if (addr->s_addr == INADDR_ANY) in handle_ifa()
1401 ifp->state->new->yiaddr == addr->s_addr) in handle_ifa()
1413 ifo->req_addr.s_addr != INADDR_ANY) in handle_ifa()
1419 ifp->dst.s_addr = dst ? dst->s_addr : INADDR_ANY; in handle_ifa()
1431 ifp->state->lease.server.s_addr = in handle_ifa()
1432 dst ? dst->s_addr : INADDR_ANY; in handle_ifa()
1459 iface->addr.s_addr != ifo->req_addr.s_addr) || in if_reboot()
1743 iface->addr.s_addr != 0 && in open_sockets()