Home
last modified time | relevance | path

Searched refs:dhcphdr (Results 1 – 6 of 6) sorted by relevance

/external/syslinux/gpxe/src/net/
Ddhcppkt.c92 .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()
[all …]
Dcachedhcp.c48 struct dhcphdr *dhcphdr; in store_cached_dhcpack() local
58 dhcphdr = ( ( ( void * ) dhcppkt ) + sizeof ( * dhcppkt ) ); in store_cached_dhcpack()
59 copy_from_user ( dhcphdr, data, 0, len ); in store_cached_dhcpack()
60 dhcppkt_init ( dhcppkt, dhcphdr, len ); in store_cached_dhcpack()
/external/syslinux/gpxe/src/arch/i386/interface/pxe/
Dpxe_preboot.c57 struct dhcphdr dhcphdr; member
117 memcpy ( cached_info[CACHED_INFO_DHCPACK].dhcphdr.file, filename, in pxe_set_cached_filename()
118 sizeof ( cached_info[CACHED_INFO_DHCPACK].dhcphdr.file ) ); in pxe_set_cached_filename()
119 memcpy ( cached_info[CACHED_INFO_BINL].dhcphdr.file, filename, in pxe_set_cached_filename()
120 sizeof ( cached_info[CACHED_INFO_BINL].dhcphdr.file ) ); in pxe_set_cached_filename()
164 if ( ! info->dhcphdr.op ) { in pxenv_get_cached_info()
/external/syslinux/gpxe/src/net/udp/
Ddhcp.c414 if ( dhcppkt->dhcphdr->yiaddr.s_addr ) in dhcp_rx_offer()
415 DBGC ( dhcp, " for %s", inet_ntoa ( dhcppkt->dhcphdr->yiaddr )); in dhcp_rx_offer()
434 offer->ip = dhcppkt->dhcphdr->yiaddr; in dhcp_rx_offer()
622 ip = dhcppkt->dhcphdr->yiaddr; in dhcp_request_rx()
991 typeof ( ( ( struct dhcphdr * ) NULL )->chaddr ) chaddr; in dhcp_chaddr()
1039 struct dhcphdr *dhcphdr = data; in dhcp_create_packet() local
1044 if ( max_len < ( sizeof ( *dhcphdr ) + options_len ) ) in dhcp_create_packet()
1048 memset ( dhcphdr, 0, max_len ); in dhcp_create_packet()
1049 dhcphdr->xid = dhcp_xid ( netdev ); in dhcp_create_packet()
1050 dhcphdr->magic = htonl ( DHCP_MAGIC_COOKIE ); in dhcp_create_packet()
[all …]
/external/syslinux/gpxe/src/include/gpxe/
Ddhcppkt.h24 struct dhcphdr *dhcphdr; member
62 struct dhcphdr *data, size_t len );
Ddhcp.h502 struct dhcphdr { struct