diff options
author | Michael Brown | 2007-06-28 00:20:36 +0200 |
---|---|---|
committer | Michael Brown | 2007-06-28 00:20:36 +0200 |
commit | 07dc294de8e984b450297037b53ac33b038dcd7b (patch) | |
tree | fa0bd2f4d3ad93e5104b1e20907b29740ef0d6ec /src/usr/dhcpmgmt.c | |
parent | Kill off hotplug.h and just make net devices normal reference-counted (diff) | |
download | ipxe-07dc294de8e984b450297037b53ac33b038dcd7b.tar.gz ipxe-07dc294de8e984b450297037b53ac33b038dcd7b.tar.xz ipxe-07dc294de8e984b450297037b53ac33b038dcd7b.zip |
Update DHCP to use data-xfer interface (not yet tested).
Diffstat (limited to 'src/usr/dhcpmgmt.c')
-rw-r--r-- | src/usr/dhcpmgmt.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/usr/dhcpmgmt.c b/src/usr/dhcpmgmt.c index 926cd749..45c7e1ee 100644 --- a/src/usr/dhcpmgmt.c +++ b/src/usr/dhcpmgmt.c @@ -18,6 +18,7 @@ #include <string.h> #include <stdio.h> +#include <errno.h> #include <byteswap.h> #include <gpxe/in.h> #include <gpxe/ip.h> @@ -34,6 +35,12 @@ * */ +int dhcp ( struct net_device *netdev ) { + return -ENOTSUP; +} + +#if 0 + /* Avoid dragging in dns.o */ struct sockaddr_tcpip nameserver; @@ -63,7 +70,7 @@ int dhcp ( struct net_device *netdev ) { /* Free up any previously-acquired options */ if ( dhcp_options ) { unregister_dhcp_options ( dhcp_options ); - free_dhcp_options ( dhcp_options ); + dhcpopt_put ( dhcp_options ); dhcp_options = NULL; } @@ -108,3 +115,5 @@ int dhcp ( struct net_device *netdev ) { return 0; } + +#endif |