diff options
Diffstat (limited to 'net')
| -rw-r--r-- | net/arp.c | 6 | ||||
| -rw-r--r-- | net/bootp.c | 6 | ||||
| -rw-r--r-- | net/net.c | 2 | ||||
| -rw-r--r-- | net/ping.h | 3 | ||||
| -rw-r--r-- | net/tftp.h | 3 | 
5 files changed, 10 insertions, 10 deletions
| @@ -27,15 +27,15 @@  #endif  IPaddr_t	NetArpWaitPacketIP; -IPaddr_t	NetArpWaitReplyIP; +static IPaddr_t	NetArpWaitReplyIP;  /* MAC address of waiting packet's destination */  uchar	       *NetArpWaitPacketMAC;  int		NetArpWaitTxPacketSize;  ulong		NetArpWaitTimerStart;  int		NetArpWaitTry; -uchar	       *NetArpTxPacket;	/* THE ARP transmit packet */ -uchar		NetArpPacketBuf[PKTSIZE_ALIGN + PKTALIGN]; +static uchar   *NetArpTxPacket;	/* THE ARP transmit packet */ +static uchar	NetArpPacketBuf[PKTSIZE_ALIGN + PKTALIGN];  void ArpInit(void)  { diff --git a/net/bootp.c b/net/bootp.c index cd5c5dd1d..4300f1c2f 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -41,9 +41,9 @@ ulong		BootpID;  int		BootpTry;  #if defined(CONFIG_CMD_DHCP) -dhcp_state_t dhcp_state = INIT; -unsigned long dhcp_leasetime; -IPaddr_t NetDHCPServerIP; +static dhcp_state_t dhcp_state = INIT; +static unsigned long dhcp_leasetime; +static IPaddr_t NetDHCPServerIP;  static void DhcpHandler(uchar *pkt, unsigned dest, IPaddr_t sip, unsigned src,  			unsigned len); @@ -180,7 +180,7 @@ IPaddr_t	NetNtpServerIP;  int		NetTimeOffset;  #endif -uchar PktBuf[(PKTBUFSRX+1) * PKTSIZE_ALIGN + PKTALIGN]; +static uchar PktBuf[(PKTBUFSRX+1) * PKTSIZE_ALIGN + PKTALIGN];  /* Receive packet */  uchar *NetRxPackets[PKTBUFSRX]; diff --git a/net/ping.h b/net/ping.h index fd8d8d977..8c71be4fd 100644 --- a/net/ping.h +++ b/net/ping.h @@ -8,8 +8,6 @@   *	Copyright 2000-2002 Wolfgang Denk, wd@denx.de   */ -#if defined(CONFIG_CMD_PING) -  #ifndef __PING_H__  #define __PING_H__ @@ -31,4 +29,3 @@ void ping_start(void);  void ping_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len);  #endif /* __PING_H__ */ -#endif diff --git a/net/tftp.h b/net/tftp.h index 18e4c9c25..2b686e3ca 100644 --- a/net/tftp.h +++ b/net/tftp.h @@ -22,6 +22,9 @@ void TftpStart(enum proto_t protocol);	/* Begin TFTP get/put */  extern void TftpStartServer(void);	/* Wait for incoming TFTP put */  #endif +extern ulong TftpRRQTimeoutMSecs; +extern int TftpRRQTimeoutCountMax; +  /**********************************************************************/  #endif /* __TFTP_H__ */ |