diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-06-02 16:04:52 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-06-17 08:28:25 +0200 |
commit | 57e1fc33bda4f4f215bdaa7ebb2a79cc5aac3799 (patch) | |
tree | b7fca4099609294be88d04e68c560092d7e3a8d2 /commands/net.c | |
parent | c70689d72780cf0385a361bd754347c5e4a1ba97 (diff) | |
download | barebox-57e1fc33bda4f4f215bdaa7ebb2a79cc5aac3799.tar.gz barebox-57e1fc33bda4f4f215bdaa7ebb2a79cc5aac3799.tar.xz |
net: remove old network stack
All network commands now use the new stack, so remove the old one.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/net.c')
-rw-r--r-- | commands/net.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/commands/net.c b/commands/net.c index 949963ffdc..938463c7c4 100644 --- a/commands/net.c +++ b/commands/net.c @@ -35,48 +35,6 @@ #include <errno.h> #include <libbb.h> -void netboot_update_env(void) -{ - struct eth_device *eth_current = eth_get_current(); - char tmp[22]; - IPaddr_t net_gateway_ip = NetOurGatewayIP; - IPaddr_t net_ip = NetOurIP; - IPaddr_t net_server_ip = NetServerIP; - IPaddr_t netmask = NetOurSubnetMask; - - if (net_gateway_ip) - dev_set_param_ip(ð_current->dev, "gateway", net_gateway_ip); - - if (netmask) - dev_set_param_ip(ð_current->dev, "netmask", netmask); - - - if (NetOurHostName[0]) - setenv ("hostname", NetOurHostName); - - if (NetOurRootPath[0]) - setenv ("rootpath", NetOurRootPath); - - if (net_ip) - dev_set_param_ip(ð_current->dev, "ipaddr", net_ip); - - if (net_server_ip) - dev_set_param_ip(ð_current->dev, "serverip", net_server_ip); - - if (NetOurDNSIP) { - ip_to_string (NetOurDNSIP, tmp); - setenv ("dnsip", tmp); - } -#ifdef CONFIG_BOOTP_DNS2 - if (NetOurDNS2IP) { - ip_to_string (NetOurDNS2IP, tmp); - setenv ("dnsip2", tmp); - } -#endif - if (NetOurNISDomain[0]) - setenv ("domain", NetOurNISDomain); -} - #ifdef CONFIG_NET_RARP extern void RarpRequest(void); |