10 #if(DEBUG_ETHERNET_ARP==1)
11 #define DEBUG_ETHERNET_INFO 1
12 #define DEBUG_ETHERNET_ADDRESS_GET 1
14 #define DEBUG_ETHERNET_INFO 0
15 #define DEBUG_ETHERNET_ADDRESS_GET 0
18 #define EthernetArpIdleState 0
63 if((pIpAddress[0]==ArpCache[i].IpAddress[0])&&
64 (pIpAddress[1]==ArpCache[i].IpAddress[1])&&
65 (pIpAddress[2]==ArpCache[i].IpAddress[2])&&
66 (pIpAddress[3]==ArpCache[i].IpAddress[3]))
69 if(i==ARP_CACHE_SIZE){
76 #if(DEBUG_ETHERNET_ADDRESS_GET==1)
77 printf(
"\n arp address add");
78 printf(
"\n ARP index %x ",i);
79 printf(
"\n MAC Addr %2x %2x %2x %2x %2x %2x",pMacAddress[0]
85 printf(
"\n IP Addr %2x %2x %2x %2x ",pIpAddress[0]
96 if((pIpAddress[0]==ArpCache[i].IpAddress[0])&&
97 (pIpAddress[1]==ArpCache[i].IpAddress[1])&&
98 (pIpAddress[2]==ArpCache[i].IpAddress[2])&&
99 (pIpAddress[3]==ArpCache[i].IpAddress[3]))
105 if(i==ARP_CACHE_SIZE){
110 #if(DEBUG_ETHERNET_ADDRESS_GET==1)
111 printf(
"\n arp address get");
112 printf(
"\n MAC Addr %2x %2x %2x %2x %2x %2x",pMacAddress[0]
118 printf(
"\n IP Addr %2x %2x %2x %2x ",pIpAddress[0]
143 #if(DEBUG_ETHERNET_INFO)
190 #if(DEBUG_ETHERNET_INFO)
237 #if(DEBUG_ETHERNET_INFO)
238 printf(
"\n ******** arp response send 2********");
264 printf(
"\n arp transmition done \n");
288 printf(
"\n ******** arp receive********");
314 printf(
"\n arp receive done \n");