• Home
  • Raw
  • Download

Lines Matching refs:INADDRSZ

194       if ((option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ) || mess_type == DHCPDISCOVER))  in dhcp_reply()
215 …ption_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), SUBOPT_SUBNET_SELECT, INADDRSZ))) in dhcp_reply()
219 … = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), SUBOPT_SERVER_OR, INADDRSZ))) in dhcp_reply()
248 if (subnet_addr.s_addr == 0 && (opt = option_find(mess, sz, OPTION_SUBNET_SELECT, INADDRSZ))) in dhcp_reply()
761 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, htonl(context->local.s_addr)); in dhcp_reply()
809 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, htonl(context->local.s_addr)); in dhcp_reply()
834 if (!(opt = option_find(mess, sz, OPTION_SERVER_IDENTIFIER, INADDRSZ)) || in dhcp_reply()
841 if (!(opt = option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ))) in dhcp_reply()
867 !(opt = option_find(mess, sz, OPTION_SERVER_IDENTIFIER, INADDRSZ)) || in dhcp_reply()
892 if ((opt = option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ))) in dhcp_reply()
956 …option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallb… in dhcp_reply()
972 if ((opt = option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ))) in dhcp_reply()
980 if ((opt = option_find(mess, sz, OPTION_SERVER_IDENTIFIER, INADDRSZ))) in dhcp_reply()
1125 …option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallb… in dhcp_reply()
1225 …option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallb… in dhcp_reply()
1280 …option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallb… in dhcp_reply()
1425 for (daemon->namebuff[0]= 0, i = 0; i <= trunc - INADDRSZ; i += INADDRSZ) in log_options()
1504 memcpy(&ret, option_ptr(opt, offset), INADDRSZ); in option_addr_arr()
1729 for (j = 0; j < opt->len; j+=INADDRSZ, a++) in do_opt()
1733 memcpy(p, &context->local, INADDRSZ); in do_opt()
1735 memcpy(p, a, INADDRSZ); in do_opt()
1736 p += INADDRSZ; in do_opt()
1927 if (q - (unsigned char *)daemon->dhcp_buff2 + 3 + INADDRSZ >= 253) in pxe_opts()
1935 memcpy(q, &service->server.s_addr, INADDRSZ); in pxe_opts()
1936 q += INADDRSZ; in pxe_opts()
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()
2146 option_put(mess, end, OPTION_BROADCAST, INADDRSZ, ntohl(context->broadcast.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()