net: Fix arp.h so that net_arp_init() is found

The net_arp_init() was not properly declared if IPv4 was
not active.

Change-Id: I479b93f67c4536bcf9a081c36a6bc82dc5605c4c
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2016-06-07 11:52:23 +03:00
commit c13ffd3433

View file

@ -20,11 +20,11 @@
* limitations under the License.
*/
#if defined(CONFIG_NET_IPV4)
#ifndef __ARP_H
#define __ARP_H
#if defined(CONFIG_NET_ARP)
#include <net/ethernet.h>
#define NET_ARP_BUF(buf) ((struct net_arp_hdr *)net_nbuf_ll(buf))
@ -50,12 +50,12 @@ struct net_arp_hdr {
struct net_buf *net_arp_prepare(struct net_buf *buf);
enum net_verdict net_arp_input(struct net_buf *buf);
#if defined(CONFIG_NET_ARP)
void net_arp_init(void);
#else
#else /* CONFIG_NET_ARP */
#define net_arp_init(...)
#endif
#endif /* CONFIG_NET_ARP */
#endif /* __ARP_H */
#endif /* CONFIG_NET_IPV4 */