diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-08-19 15:41:47 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-10-13 11:02:15 +0200 |
commit | faa61661cf6373dd606a34af9c082c0bb521126a (patch) | |
tree | 8e9ebc0c9d9b88380103e86bec69274c2b0d9078 /net | |
parent | 5619409df605d0e4be9e387f6160fd1fc8a08284 (diff) | |
download | barebox-faa61661cf6373dd606a34af9c082c0bb521126a.tar.gz barebox-faa61661cf6373dd606a34af9c082c0bb521126a.tar.xz |
only the ping code is interested in the ping ip
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/net.c | 14 | ||||
-rw-r--r-- | net/ping.c | 2 |
2 files changed, 2 insertions, 14 deletions
@@ -135,12 +135,6 @@ ushort NetOurNativeVLAN = 0xFFFF; /* ditto */ char BootFile[128]; /* Boot File name */ -#ifdef CONFIG_NET_PING -IPaddr_t NetPingIP; /* the ip address to ping */ - -extern void PingStart(void); -#endif - #ifdef CONFIG_NET_SNTP IPaddr_t NetNtpServerIP; /* NTP server IP address */ int NetTimeOffset=0; /* offset time from UTC */ @@ -790,14 +784,6 @@ static int net_check_prereq (proto_t protocol) switch (protocol) { /* Fall through */ -#ifdef CONFIG_NET_PING - case PING: - if (NetPingIP == 0) { - puts ("*** ERROR: ping address not given\n"); - return -1; - } - goto common; -#endif #ifdef CONFIG_NET_SNTP case SNTP: if (NetNtpServerIP == 0) { diff --git a/net/ping.c b/net/ping.c index 315457ada7..5909c31fe8 100644 --- a/net/ping.c +++ b/net/ping.c @@ -5,6 +5,8 @@ static ushort PingSeqNo; +static IPaddr_t NetPingIP; /* the ip address to ping */ + static int PingSend(void) { static uchar mac[6]; |