Lines Matching refs:INADDRSZ

183         if ((option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ) || mess_type == DHCPDISCOVER))  in dhcp_reply()
203 SUBOPT_SUBNET_SELECT, INADDRSZ))) in dhcp_reply()
208 SUBOPT_SERVER_OR, INADDRSZ))) in dhcp_reply()
236 … if (subnet_addr.s_addr == 0 && (opt = option_find(mess, sz, OPTION_SUBNET_SELECT, INADDRSZ))) in dhcp_reply()
674 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, htonl(context->local.s_addr)); in dhcp_reply()
717 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, in dhcp_reply()
742 if (!(opt = option_find(mess, sz, OPTION_SERVER_IDENTIFIER, INADDRSZ)) || in dhcp_reply()
749 if (!(opt = option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ))) return 0; in dhcp_reply()
770 !(opt = option_find(mess, sz, OPTION_SERVER_IDENTIFIER, INADDRSZ)) || in dhcp_reply()
792 if ((opt = option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ))) in dhcp_reply()
857 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, in dhcp_reply()
872 if ((opt = option_find(mess, sz, OPTION_REQUESTED_IP, INADDRSZ))) { in dhcp_reply()
879 if ((opt = option_find(mess, sz, OPTION_SERVER_IDENTIFIER, INADDRSZ))) { in dhcp_reply()
1001 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, in dhcp_reply()
1086 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, in dhcp_reply()
1133 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, in dhcp_reply()
1252 for (daemon->namebuff[0] = 0, i = 0; i <= trunc - INADDRSZ; i += INADDRSZ) { in log_options()
1320 memcpy(&ret, option_ptr(opt, offset), INADDRSZ); in option_addr_arr()
1506 for (j = 0; j < opt->len; j += INADDRSZ, a++) { in do_opt()
1509 memcpy(p, &context->local, INADDRSZ); in do_opt()
1511 memcpy(p, a, INADDRSZ); in do_opt()
1512 p += INADDRSZ; in do_opt()
1672 if (q - (unsigned char*) daemon->dhcp_buff2 + 3 + INADDRSZ >= 253) goto toobig; in pxe_opts()
1679 memcpy(q, &service->server.s_addr, INADDRSZ); in pxe_opts()
1680 q += INADDRSZ; in pxe_opts()
1843 option_put(mess, end, OPTION_SUBNET_SELECT, INADDRSZ, ntohl(subnet_addr.s_addr)); in do_options()
1848 option_put(mess, end, OPTION_NETMASK, INADDRSZ, ntohl(context->netmask.s_addr)); in do_options()
1853 option_put(mess, end, OPTION_BROADCAST, INADDRSZ, ntohl(context->broadcast.s_addr)); in do_options()
1859 option_put(mess, end, OPTION_ROUTER, INADDRSZ, ntohl(context->router.s_addr)); in do_options()
1863 option_put(mess, end, OPTION_DNSSERVER, INADDRSZ, ntohl(context->local.s_addr)); in do_options()