From e9561aafc07ba27e281053a336c85b4fbc2df51b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 9 Aug 2006 02:56:40 +0000 Subject: Derive xid dynamically from the netdev, so that we can call create_dhcp_packet() from pxe_preboot.c, after the dhcp_session is long gone. Expose the functions required by pxe_preboot.c --- src/include/gpxe/dhcp.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/gpxe/dhcp.h b/src/include/gpxe/dhcp.h index 5f1943eba..10e423190 100644 --- a/src/include/gpxe/dhcp.h +++ b/src/include/gpxe/dhcp.h @@ -426,8 +426,6 @@ struct dhcp_session { /** Options obtained from server */ struct dhcp_option_block *options; - /** Transaction ID, in network-endian order */ - uint32_t xid; /** State of the session * * This is a value for the @c DHCP_MESSAGE_TYPE option @@ -467,6 +465,12 @@ extern void find_global_dhcp_ipv4_option ( unsigned int tag, extern void delete_dhcp_option ( struct dhcp_option_block *options, unsigned int tag ); +extern struct dhcp_option_block dhcp_request_options; +extern int create_dhcp_packet ( struct net_device *netdev, uint8_t msgtype, + void *data, size_t max_len, + struct dhcp_packet *dhcppkt ); +extern int copy_dhcp_packet_options ( struct dhcp_packet *dhcppkt, + struct dhcp_option_block *options ); extern struct async_operation * start_dhcp ( struct dhcp_session *dhcp ); #endif /* _GPXE_DHCP_H */ -- cgit v1.2.3-55-g7522