mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 14:11:02 +00:00
Optimize my last fix in etharp.c, I missed the variable declaration at the beginning of the function
(cherry picked from commit 7aaa888d1d
)
This commit is contained in:
parent
4fc3770278
commit
8c6ac8eb59
@ -699,11 +699,7 @@ etharp_input(struct pbuf *p, struct netif *netif)
|
|||||||
LWIP_DEBUGF (ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_input: incoming ARP request\n"));
|
LWIP_DEBUGF (ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_input: incoming ARP request\n"));
|
||||||
/* ARP request for our address? */
|
/* ARP request for our address? */
|
||||||
if (for_us) {
|
if (for_us) {
|
||||||
ip4_addr_t sipaddr;
|
/* send ARP response */
|
||||||
|
|
||||||
/* Need an aligned copy of source IP */
|
|
||||||
IPADDR2_COPY(&sipaddr.addr, &hdr->sipaddr);
|
|
||||||
|
|
||||||
etharp_raw(netif,
|
etharp_raw(netif,
|
||||||
(struct eth_addr *)netif->hwaddr, &hdr->dhwaddr,
|
(struct eth_addr *)netif->hwaddr, &hdr->dhwaddr,
|
||||||
(struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif),
|
(struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif),
|
||||||
|
Loading…
Reference in New Issue
Block a user