Lines Matching refs:s_addr
151 subnet_addr.s_addr = override.s_addr = 0; in dhcp_reply()
195 mess->ciaddr.s_addr = 0; in dhcp_reply()
248 if (subnet_addr.s_addr == 0 && (opt = option_find(mess, sz, OPTION_SUBNET_SELECT, INADDRSZ))) in dhcp_reply()
289 if (mess->giaddr.s_addr || subnet_addr.s_addr || mess->ciaddr.s_addr) in dhcp_reply()
295 if (subnet_addr.s_addr) in dhcp_reply()
300 else if (mess->giaddr.s_addr) in dhcp_reply()
310 if (context_tmp->netmask.s_addr && in dhcp_reply()
321 if (context_tmp->netmask.s_addr && in dhcp_reply()
753 mess->ciaddr.s_addr = 0; in dhcp_reply()
754 if (service->server.s_addr != 0) in dhcp_reply()
761 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, htonl(context->local.s_addr)); in dhcp_reply()
787 mess->yiaddr.s_addr = 0; in dhcp_reply()
788 if (mess_type == DHCPDISCOVER || mess->ciaddr.s_addr == 0) in dhcp_reply()
790 mess->ciaddr.s_addr = 0; in dhcp_reply()
800 if (boot->next_server.s_addr) in dhcp_reply()
809 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, htonl(context->local.s_addr)); in dhcp_reply()
835 option_addr(opt).s_addr != server_id(context, override, fallback).s_addr) in dhcp_reply()
846 if (lease && lease->addr.s_addr == option_addr(opt).s_addr) in dhcp_reply()
850 config->addr.s_addr == option_addr(opt).s_addr) in dhcp_reply()
868 option_addr(opt).s_addr != server_id(context, override, fallback).s_addr) in dhcp_reply()
871 if (lease && lease->addr.s_addr == mess->ciaddr.s_addr) in dhcp_reply()
890 addr.s_addr = conf.s_addr = 0; in dhcp_reply()
913 if (context->router.s_addr == config->addr.s_addr) in dhcp_reply()
925 if (conf.s_addr) in dhcp_reply()
956 …ss, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallback).s_addr)); in dhcp_reply()
985 if (override.s_addr != 0) in dhcp_reply()
987 if (option_addr(opt).s_addr != override.s_addr) in dhcp_reply()
993 if (context->local.s_addr == option_addr(opt).s_addr) in dhcp_reply()
1008 if (lease && lease->addr.s_addr != mess->yiaddr.s_addr) in dhcp_reply()
1020 if (lease && lease->addr.s_addr != mess->yiaddr.s_addr) in dhcp_reply()
1036 if ((lease && mess->ciaddr.s_addr != lease->addr.s_addr) || in dhcp_reply()
1057 if (context->router.s_addr == config->addr.s_addr) in dhcp_reply()
1070 (!have_config(config, CONFIG_ADDR) || config->addr.s_addr != mess->yiaddr.s_addr)) in dhcp_reply()
1080 config->addr.s_addr != mess->yiaddr.s_addr && in dhcp_reply()
1122 mess->yiaddr.s_addr = 0; in dhcp_reply()
1125 …ss, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallback).s_addr)); in dhcp_reply()
1129 if (!unicast_dest || mess->giaddr.s_addr != 0 || in dhcp_reply()
1130 mess->ciaddr.s_addr == 0 || is_same_net(context->local, mess->ciaddr, context->netmask)) in dhcp_reply()
1133 mess->ciaddr.s_addr = 0; in dhcp_reply()
1140 if (mess->giaddr.s_addr) in dhcp_reply()
1216 if (override.s_addr != 0) in dhcp_reply()
1225 …ss, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallback).s_addr)); in dhcp_reply()
1246 if (message || mess->ciaddr.s_addr == 0) in dhcp_reply()
1272 if (override.s_addr != 0) in dhcp_reply()
1280 …ss, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallback).s_addr)); in dhcp_reply()
1355 if (override.s_addr != 0) in server_id()
1612 if (mess->siaddr.s_addr != 0) in dhcp_packet_size()
1732 if (a->s_addr == 0) in do_opt()
1925 if (service->server.s_addr != 0) in pxe_opts()
1935 memcpy(q, &service->server.s_addr, INADDRSZ); in pxe_opts()
1994 mess->siaddr.s_addr = 0; in clear_packet()
2088 if (boot->next_server.s_addr) in do_options()
2112 mess->siaddr.s_addr = ((struct in_addr *)opt->val)->s_addr; in do_options()
2133 if (subnet_addr.s_addr) in do_options()
2134 option_put(mess, end, OPTION_SUBNET_SELECT, INADDRSZ, ntohl(subnet_addr.s_addr)); in do_options()
2140 option_put(mess, end, OPTION_NETMASK, INADDRSZ, ntohl(context->netmask.s_addr)); in do_options()
2144 if (context->broadcast.s_addr && in do_options()
2146 option_put(mess, end, OPTION_BROADCAST, INADDRSZ, ntohl(context->broadcast.s_addr)); in do_options()
2150 if (context->router.s_addr && in do_options()
2153 option_put(mess, end, OPTION_ROUTER, INADDRSZ, ntohl(context->router.s_addr)); in do_options()
2157 option_put(mess, end, OPTION_DNSSERVER, INADDRSZ, ntohl(context->local.s_addr)); in do_options()