Lines Matching refs:dhcphdr
92 .offset = offsetof ( struct dhcphdr, _field ), \
93 .len = sizeof ( ( ( struct dhcphdr * ) 0 )->_field ), \
112 static inline void * dhcp_packet_field ( struct dhcphdr *dhcphdr, in dhcp_packet_field() argument
114 return ( ( ( void * ) dhcphdr ) + field->offset ); in dhcp_packet_field()
156 field_data = dhcp_packet_field ( dhcppkt->dhcphdr, field ); in dhcppkt_store()
158 memcpy ( dhcp_packet_field ( dhcppkt->dhcphdr, field ), in dhcppkt_store()
169 dhcppkt->len = ( offsetof ( struct dhcphdr, options ) + in dhcppkt_store()
192 field_data = dhcp_packet_field ( dhcppkt->dhcphdr, field ); in dhcppkt_fetch()
272 void dhcppkt_init ( struct dhcp_packet *dhcppkt, struct dhcphdr *data, in dhcppkt_init()
274 dhcppkt->dhcphdr = data; in dhcppkt_init()
276 dhcpopt_init ( &dhcppkt->options, &dhcppkt->dhcphdr->options, in dhcppkt_init()
277 ( len - offsetof ( struct dhcphdr, options ) ) ); in dhcppkt_init()
278 dhcppkt->len = ( offsetof ( struct dhcphdr, options ) + in dhcppkt_init()