diff options
| author | Michael Brown | 2006-07-20 04:19:06 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-07-20 04:19:06 +0200 |
| commit | 7ca1bb0fbe804b2a206543850193949b8a613e8f (patch) | |
| tree | b909ea1b171723ad8ee9f76b992d0bef4d1dfd25 /src/include | |
| parent | Rename unwieldy function (diff) | |
| download | ipxe-7ca1bb0fbe804b2a206543850193949b8a613e8f.tar.gz ipxe-7ca1bb0fbe804b2a206543850193949b8a613e8f.tar.xz ipxe-7ca1bb0fbe804b2a206543850193949b8a613e8f.zip | |
Now successfully negotiates the whole DHCPDISCOVER/OFFER/REQUEST/ACK
cycle. :)
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/dhcp.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/include/gpxe/dhcp.h b/src/include/gpxe/dhcp.h index 6825e406a..1dbb290ef 100644 --- a/src/include/gpxe/dhcp.h +++ b/src/include/gpxe/dhcp.h @@ -12,6 +12,7 @@ #include <gpxe/in.h> #include <gpxe/udp.h> #include <gpxe/async.h> +#include <gpxe/retry.h> /** BOOTP/DHCP server port */ #define BOOTPS_PORT 67 @@ -407,6 +408,14 @@ struct dhcp_session { /** UDP connection for this session */ struct udp_connection udp; + /** Network device being configured */ + struct net_device *netdev; + + /** 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 @@ -415,11 +424,8 @@ struct dhcp_session { int state; /** Asynchronous operation for this DHCP session */ struct async_operation aop; - - /** Network device being configured */ - struct net_device *netdev; - /** Transaction ID, in network-endian order */ - uint32_t xid; + /** Retransmission timer */ + struct retry_timer timer; }; extern unsigned long dhcp_num_option ( struct dhcp_option *option ); |
