From 07dc294de8e984b450297037b53ac33b038dcd7b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 27 Jun 2007 23:20:36 +0100 Subject: Update DHCP to use data-xfer interface (not yet tested). --- src/usr/dhcpmgmt.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/usr') diff --git a/src/usr/dhcpmgmt.c b/src/usr/dhcpmgmt.c index 926cd7498..45c7e1eed 100644 --- a/src/usr/dhcpmgmt.c +++ b/src/usr/dhcpmgmt.c @@ -18,6 +18,7 @@ #include #include +#include #include #include #include @@ -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 -- cgit v1.2.3-55-g7522