X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Farp.c;h=20c6b2d42ac0f6d90804de2d2e59fd0271da663b;hb=42817eb85de1d7dec399c75dbd133ea6b5351a72;hp=bac4cab5efa55153c14c620b0be47598a82b05f4;hpb=4ef8d53caadbab5585ccb4df2d087183b1383b86;p=karo-tx-uboot.git diff --git a/net/arp.c b/net/arp.c index bac4cab5ef..20c6b2d42a 100644 --- a/net/arp.c +++ b/net/arp.c @@ -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) { @@ -194,7 +194,7 @@ void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len) #ifdef CONFIG_KEEP_SERVERADDR if (NetServerIP == NetArpWaitPacketIP) { char buf[20]; - sprintf(buf, "%pM", arp->ar_sha); + sprintf(buf, "%pM", &arp->ar_sha); setenv("serveraddr", buf); } #endif