diff options
author | Michael Brown | 2006-08-09 04:56:40 +0200 |
---|---|---|
committer | Michael Brown | 2006-08-09 04:56:40 +0200 |
commit | e9561aafc07ba27e281053a336c85b4fbc2df51b (patch) | |
tree | d3bc472fae7c3a886260529e0272ba819a1898c6 /src/include/gpxe/dhcp.h | |
parent | Aborted (diff) | |
download | ipxe-e9561aafc07ba27e281053a336c85b4fbc2df51b.tar.gz ipxe-e9561aafc07ba27e281053a336c85b4fbc2df51b.tar.xz ipxe-e9561aafc07ba27e281053a336c85b4fbc2df51b.zip |
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
Diffstat (limited to 'src/include/gpxe/dhcp.h')
-rw-r--r-- | src/include/gpxe/dhcp.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/gpxe/dhcp.h b/src/include/gpxe/dhcp.h index 5f1943eb..10e42319 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 */ |