mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-08 00:23:39 +08:00
Merged with leon-dhcp branch. Tagged as POST_leon-dhcp afterwards.
This commit is contained in:
@@ -3,6 +3,12 @@
|
||||
* Address Resolution Protocol module for IP over Ethernet
|
||||
*
|
||||
* $Log: etharp.c,v $
|
||||
* Revision 1.25 2003/02/20 08:42:04 likewise
|
||||
* Merged with leon-dhcp branch. Tagged as POST_leon-dhcp afterwards.
|
||||
*
|
||||
* Revision 1.24.2.1 2003/02/10 22:42:59 likewise
|
||||
* Massive amount of refactoring DHCP code.
|
||||
*
|
||||
* Revision 1.24 2003/02/06 22:18:57 davidhaas
|
||||
* Add the following features and bugfixes:
|
||||
*
|
||||
@@ -533,7 +539,7 @@ etharp_arp_input(struct netif *netif, struct eth_addr *ethaddr, struct pbuf *p)
|
||||
DEBUGF(ETHARP_DEBUG, ("etharp_arp_input: incoming ARP reply\n"));
|
||||
#if (LWIP_DHCP && DHCP_DOES_ARP_CHECK)
|
||||
/* DHCP needs to know about ARP replies */
|
||||
dhcp_arp_reply(&hdr->sipaddr);
|
||||
dhcp_arp_reply(struct netif *netif, &hdr->sipaddr);
|
||||
#endif
|
||||
/* ARP reply directed to us? */
|
||||
if(ip_addr_cmp(&(hdr->dipaddr), &(netif->ip_addr))) {
|
||||
|
||||
@@ -73,11 +73,20 @@ low_level_init(struct netif *netif)
|
||||
|
||||
ethernetif = netif->state;
|
||||
|
||||
/* Obtain MAC address from network interface. */
|
||||
ethernetif->ethaddr->addr[0] = ;
|
||||
ethernetif->ethaddr->addr[1] = ;
|
||||
ethernetif->ethaddr->addr[2] = ;
|
||||
/* set MAC hardware address length */
|
||||
netif->hwaddr_len = 6;
|
||||
|
||||
/* set MAC hardware address */
|
||||
netif->hwaddr[0] = ;
|
||||
...
|
||||
netif->hwaddr[6] = ;
|
||||
|
||||
/* maximum transfer unit */
|
||||
netif->mtu = 1500;
|
||||
|
||||
/* broadcast capability */
|
||||
netif->flags = NETIF_FLAG_BROADCAST;
|
||||
|
||||
/* Do whatever else is needed to initialize interface. */
|
||||
}
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user