From 61d07f88f0b3fcf526c3ce2dae590015387e913d Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Thu, 21 Apr 2016 21:21:56 +0200 Subject: [PATCH] Fix bug #47749: #define ETHARP_TRUST_IP_MAC does not compile --- src/include/netif/etharp.h | 1 + src/netif/etharp.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/netif/etharp.h b/src/include/netif/etharp.h index e745dcc3..9d9be2f7 100644 --- a/src/include/netif/etharp.h +++ b/src/include/netif/etharp.h @@ -116,6 +116,7 @@ err_t etharp_request(struct netif *netif, const ip4_addr_t *ipaddr); * From RFC 3220 "IP Mobility Support for IPv4" section 4.6. */ #define etharp_gratuitous(netif) etharp_request((netif), netif_ip4_addr(netif)) void etharp_cleanup_netif(struct netif *netif); +void etharp_ip_input(struct netif *netif, struct pbuf *p); #if ETHARP_SUPPORT_STATIC_ENTRIES err_t etharp_add_static_entry(const ip4_addr_t *ipaddr, struct eth_addr *ethaddr); diff --git a/src/netif/etharp.c b/src/netif/etharp.c index 776e949f..bf32b651 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -670,7 +670,7 @@ etharp_get_entry(u8_t i, ip4_addr_t **ipaddr, struct netif **netif, struct eth_a * * @see pbuf_free() */ -static void +void etharp_ip_input(struct netif *netif, struct pbuf *p) { struct eth_hdr *ethhdr;