Lines Matching refs:dhcp
33 #include "dhcp.h"
40 get_dhcp_message_type (const struct dhcp *dhcp, const int optlen)
42 const uint8_t *p = (uint8_t *) (dhcp + 1);
75 do_extract (struct dhcp *dhcp, int optlen)
77 uint8_t *p = (uint8_t *) (dhcp + 1);
176 const int optlen = BLEN (ipbuf) - (sizeof (struct openvpn_iphdr) + sizeof (struct openvpn_udphdr) + sizeof (struct dhcp));
182 && df->dhcp.op == BOOTREPLY)
184 const int message_type = get_dhcp_message_type (&df->dhcp, optlen);
188 const in_addr_t ret = do_extract (&df->dhcp, optlen);
193 sizeof (struct openvpn_udphdr) + sizeof (struct dhcp) + optlen,