• Home
  • Raw
  • Download

Lines Matching refs:option_put

87 static void option_put(struct dhcp_packet *mess, unsigned char *end, int opt, int len, unsigned int…
760 option_put(mess, end, OPTION_MESSAGE_TYPE, 1, DHCPACK); in dhcp_reply()
761 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, htonl(context->local.s_addr)); in dhcp_reply()
807 option_put(mess, end, OPTION_MESSAGE_TYPE, 1, in dhcp_reply()
809 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, htonl(context->local.s_addr)); in dhcp_reply()
955 option_put(mess, end, OPTION_MESSAGE_TYPE, 1, DHCPOFFER); in dhcp_reply()
956option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallb… in dhcp_reply()
957 option_put(mess, end, OPTION_LEASE_TIME, 4, time); in dhcp_reply()
961 option_put(mess, end, OPTION_T1, 4, (time/2)); in dhcp_reply()
962 option_put(mess, end, OPTION_T2, 4, (time*7)/8); in dhcp_reply()
1124 option_put(mess, end, OPTION_MESSAGE_TYPE, 1, DHCPNAK); in dhcp_reply()
1125option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallb… in dhcp_reply()
1224 option_put(mess, end, OPTION_MESSAGE_TYPE, 1, DHCPACK); in dhcp_reply()
1225option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallb… in dhcp_reply()
1226 option_put(mess, end, OPTION_LEASE_TIME, 4, time); in dhcp_reply()
1231 option_put(mess, end, OPTION_T1, 4, (time/2) - fuzz); in dhcp_reply()
1232 option_put(mess, end, OPTION_T2, 4, ((time/8)*7) - fuzz); in dhcp_reply()
1279 option_put(mess, end, OPTION_MESSAGE_TYPE, 1, DHCPACK); in dhcp_reply()
1280option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallb… in dhcp_reply()
1288 option_put(mess, end, OPTION_LEASE_TIME, 4, time); in dhcp_reply()
1692 static void option_put(struct dhcp_packet *mess, unsigned char *end, int opt, int len, unsigned int… in option_put() function
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()