• Home
  • Raw
  • Download

Lines Matching refs:option_put

89 static void option_put(struct dhcp_packet* mess, unsigned char* end, int opt, int len,
673 option_put(mess, end, OPTION_MESSAGE_TYPE, 1, DHCPACK); in dhcp_reply()
674 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, htonl(context->local.s_addr)); in dhcp_reply()
715 option_put(mess, end, OPTION_MESSAGE_TYPE, 1, in dhcp_reply()
717 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, in dhcp_reply()
856 option_put(mess, end, OPTION_MESSAGE_TYPE, 1, DHCPOFFER); in dhcp_reply()
857 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, in dhcp_reply()
859 option_put(mess, end, OPTION_LEASE_TIME, 4, time); in dhcp_reply()
862 option_put(mess, end, OPTION_T1, 4, (time / 2)); in dhcp_reply()
863 option_put(mess, end, OPTION_T2, 4, (time * 7) / 8); in dhcp_reply()
1000 option_put(mess, end, OPTION_MESSAGE_TYPE, 1, DHCPNAK); in dhcp_reply()
1001 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, in dhcp_reply()
1085 option_put(mess, end, OPTION_MESSAGE_TYPE, 1, DHCPACK); in dhcp_reply()
1086 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, in dhcp_reply()
1088 option_put(mess, end, OPTION_LEASE_TIME, 4, time); in dhcp_reply()
1091 option_put(mess, end, OPTION_T1, 4, (time / 2) - fuzz); in dhcp_reply()
1092 option_put(mess, end, OPTION_T2, 4, ((time / 8) * 7) - fuzz); in dhcp_reply()
1132 option_put(mess, end, OPTION_MESSAGE_TYPE, 1, DHCPACK); in dhcp_reply()
1133 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, in dhcp_reply()
1141 option_put(mess, end, OPTION_LEASE_TIME, 4, time); in dhcp_reply()
1476 static void option_put(struct dhcp_packet* mess, unsigned char* end, int opt, int len, in option_put() function
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()