From ea1eb45e3f80a458909499077321edaf20b17616 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 18 Feb 2009 16:48:30 +0000 Subject: [PATCH] etharp_raw: allocating PBUF_RAW for outgoing ARP packets instead of PBUF_LINK is enough. --- src/netif/etharp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netif/etharp.c b/src/netif/etharp.c index ab8586c3..917320b7 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -1041,7 +1041,7 @@ etharp_raw(struct netif *netif, const struct eth_addr *ethsrc_addr, #endif /* LWIP_AUTOIP */ /* allocate a pbuf for the outgoing ARP request packet */ - p = pbuf_alloc(PBUF_LINK, sizeof(struct etharp_hdr), PBUF_RAM); + p = pbuf_alloc(PBUF_RAW, sizeof(struct etharp_hdr), PBUF_RAM); /* could allocate a pbuf for an ARP request? */ if (p == NULL) { LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | 2, ("etharp_raw: could not allocate pbuf for ARP request.\n"));