Home | History | Annotate | Download | only in net

Lines Matching refs:dhcphdr

92 		.offset = offsetof ( struct dhcphdr, _field ),		\
93 .len = sizeof ( ( ( struct dhcphdr * ) 0 )->_field ), \
108 * @v dhcphdr DHCP packet header
112 static inline void * dhcp_packet_field ( struct dhcphdr *dhcphdr,
114 return ( ( ( void * ) dhcphdr ) + field->offset );
156 field_data = dhcp_packet_field ( dhcppkt->dhcphdr, field );
158 memcpy ( dhcp_packet_field ( dhcppkt->dhcphdr, field ),
169 dhcppkt->len = ( offsetof ( struct dhcphdr, options ) +
192 field_data = dhcp_packet_field ( dhcppkt->dhcphdr, field );
272 void dhcppkt_init ( struct dhcp_packet *dhcppkt, struct dhcphdr *data,
274 dhcppkt->dhcphdr = data;
276 dhcpopt_init ( &dhcppkt->options, &dhcppkt->dhcphdr->options,
277 ( len - offsetof ( struct dhcphdr, options ) ) );
278 dhcppkt->len = ( offsetof ( struct dhcphdr, options ) +