summaryrefslogtreecommitdiffstats
path: root/src/net/udp/dhcp.c
diff options
context:
space:
mode:
authorMichael Brown2007-06-28 02:55:01 +0200
committerMichael Brown2007-06-28 02:55:01 +0200
commitcf33b568dcce722e60ec9a97e3e26760888d4f3b (patch)
tree6a45278088c3583e294e40293990534f82de62b6 /src/net/udp/dhcp.c
parentKill off job::start() (it was only ever added as part of an aborted (diff)
downloadipxe-cf33b568dcce722e60ec9a97e3e26760888d4f3b.tar.gz
ipxe-cf33b568dcce722e60ec9a97e3e26760888d4f3b.tar.xz
ipxe-cf33b568dcce722e60ec9a97e3e26760888d4f3b.zip
Forgot to set initial session state. Now works!
Diffstat (limited to 'src/net/udp/dhcp.c')
-rw-r--r--src/net/udp/dhcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c
index 1778ba70..5319dc0e 100644
--- a/src/net/udp/dhcp.c
+++ b/src/net/udp/dhcp.c
@@ -806,6 +806,7 @@ int start_dhcp ( struct job_interface *job, struct net_device *netdev,
dhcp->netdev = netdev_get ( netdev );
dhcp->register_options = register_options;
dhcp->timer.expired = dhcp_timer_expired;
+ dhcp->state = DHCPDISCOVER;
/* Instantiate child objects and attach to our interfaces */
if ( ( rc = xfer_open_socket ( &dhcp->xfer, SOCK_DGRAM,