rfc2131.c | 87 static void option_put(struct dhcp_packet *mess, unsigned char *end, int opt, int len, unsigned int val); 760 option_put(mess, end, OPTION_MESSAGE_TYPE, 1, DHCPACK); 761 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, htonl(context->local.s_addr)); 807 option_put(mess, end, OPTION_MESSAGE_TYPE, 1, 809 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, htonl(context->local.s_addr)); 955 option_put(mess, end, OPTION_MESSAGE_TYPE, 1, DHCPOFFER); 956 option_put(mess, end, OPTION_SERVER_IDENTIFIER, INADDRSZ, ntohl(server_id(context, override, fallback).s_addr)); 957 option_put(mess, end, OPTION_LEASE_TIME, 4, time); 961 option_put(mess, end, OPTION_T1, 4, (time/2)); 962 option_put(mess, end, OPTION_T2, 4, (time*7)/8) 1692 static void option_put(struct dhcp_packet *mess, unsigned char *end, int opt, int len, unsigned int val) function [all...] |