Home
last modified time | relevance | path

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

/external/syslinux/gpxe/src/net/
Ddhcppkt.c146 int dhcppkt_store ( struct dhcp_packet *dhcppkt, unsigned int tag, in dhcppkt_store() argument
156 field_data = dhcp_packet_field ( dhcppkt->dhcphdr, field ); in dhcppkt_store()
158 memcpy ( dhcp_packet_field ( dhcppkt->dhcphdr, field ), in dhcppkt_store()
161 dhcpopt_store ( &dhcppkt->options, tag, NULL, 0 ); in dhcppkt_store()
166 rc = dhcpopt_store ( &dhcppkt->options, tag, data, len ); in dhcppkt_store()
169 dhcppkt->len = ( offsetof ( struct dhcphdr, options ) + in dhcppkt_store()
170 dhcppkt->options.len ); in dhcppkt_store()
184 int dhcppkt_fetch ( struct dhcp_packet *dhcppkt, unsigned int tag, in dhcppkt_fetch() argument
192 field_data = dhcp_packet_field ( dhcppkt->dhcphdr, field ); in dhcppkt_fetch()
205 return dhcpopt_fetch ( &dhcppkt->options, tag, data, len ); in dhcppkt_fetch()
[all …]
Dcachedhcp.c47 struct dhcp_packet *dhcppkt; in store_cached_dhcpack() local
53 dhcppkt = zalloc ( sizeof ( *dhcppkt ) + len ); in store_cached_dhcpack()
54 if ( ! dhcppkt ) in store_cached_dhcpack()
58 dhcphdr = ( ( ( void * ) dhcppkt ) + sizeof ( * dhcppkt ) ); in store_cached_dhcpack()
60 dhcppkt_init ( dhcppkt, dhcphdr, len ); in store_cached_dhcpack()
61 DBG_HD ( dhcppkt->options.data, dhcppkt->options.len ); in store_cached_dhcpack()
69 if ( ( rc = register_settings ( &dhcppkt->settings, parent ) ) != 0 ) in store_cached_dhcpack()
73 dhcppkt_put ( dhcppkt ); in store_cached_dhcpack()
Dfakedhcp.c112 struct dhcp_packet dhcppkt; in create_fakedhcpdiscover() local
116 if ( ( rc = dhcp_create_request ( &dhcppkt, netdev, DHCPDISCOVER, in create_fakedhcpdiscover()
138 struct dhcp_packet dhcppkt; in create_fakedhcpack() local
142 if ( ( rc = dhcp_create_packet ( &dhcppkt, netdev, DHCPACK, NULL, 0, in create_fakedhcpack()
152 if ( ( rc = copy_settings ( &dhcppkt, NULL ) ) != 0 ) { in create_fakedhcpack()
157 if ( ( rc = copy_settings ( &dhcppkt, in create_fakedhcpack()
179 struct dhcp_packet dhcppkt; in create_fakepxebsack() local
193 if ( ( rc = dhcp_create_packet ( &dhcppkt, netdev, DHCPACK, NULL, 0, in create_fakepxebsack()
202 ( ( rc = copy_settings ( &dhcppkt, proxy_settings ) ) != 0 ) ) { in create_fakepxebsack()
210 ( ( rc = copy_settings ( &dhcppkt, pxebs_settings ) ) != 0 ) ) { in create_fakepxebsack()
/external/syslinux/gpxe/src/net/udp/
Ddhcp.c179 struct dhcp_packet *dhcppkt,
190 struct dhcp_packet *dhcppkt,
374 struct dhcp_packet *dhcppkt __unused, in dhcp_discovery_tx()
396 struct dhcp_packet *dhcppkt, in dhcp_rx_offer() argument
414 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()
437 vci_len = dhcppkt_fetch ( dhcppkt, DHCP_VENDOR_CLASS_ID, in dhcp_rx_offer()
443 pxeopts_len = dhcppkt_fetch ( dhcppkt, DHCP_PXE_BOOT_MENU, NULL, 0 ); in dhcp_rx_offer()
452 offer->pxe = dhcppkt_get ( dhcppkt ); in dhcp_rx_offer()
[all …]
/external/syslinux/gpxe/src/include/gpxe/
Ddhcppkt.h42 dhcppkt_get ( struct dhcp_packet *dhcppkt ) { in dhcppkt_get() argument
43 ref_get ( &dhcppkt->refcnt ); in dhcppkt_get()
44 return dhcppkt; in dhcppkt_get()
53 dhcppkt_put ( struct dhcp_packet *dhcppkt ) { in dhcppkt_put() argument
54 ref_put ( &dhcppkt->refcnt ); in dhcppkt_put()
57 extern int dhcppkt_store ( struct dhcp_packet *dhcppkt, unsigned int tag,
59 extern int dhcppkt_fetch ( struct dhcp_packet *dhcppkt, unsigned int tag,
61 extern void dhcppkt_init ( struct dhcp_packet *dhcppkt,
Ddhcp.h617 extern int dhcp_create_packet ( struct dhcp_packet *dhcppkt,
621 extern int dhcp_create_request ( struct dhcp_packet *dhcppkt,