if (pu8Packet[0] == 0xFF) { /* this is a broadcast packet */ //ÕâÊǸö¹ã²¥°ü
/*
* We manage the ARP reply process here. //¹ÜÀíARPÏìÓ¦´¦Àí
* In the following code, if we have received a ARP request,
* we send ARP reply immediately.
*/
if ((!COMPARE_IP(arp->au8TargetIP, g_au8IpAddr)) &&
(arp->u16Type == SWAP16(PROTOCOL_ARP)) &&
(arp->u16Operation == SWAP16(ARP_REQUEST))) {
//·¢ËͶËIP Ä¿±ê¶ËÓ²¼þµØÖ·
arp_reply(arp->su8SenderIP, arp->au8SenderHA);
}
return 0;
}