net: yaip: Moved ARP helper macro to arp.h

The helper macro NET_ARP_BUF() needs to be used from other
files so arp.h is proper place for it.

Change-Id: Ief7bbb385d9c180213ecd7cb08023f13999f5270
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2016-06-01 10:19:36 +03:00
commit d0daa97820
2 changed files with 2 additions and 2 deletions

View file

@ -27,6 +27,8 @@
#include <net/ethernet.h>
#define NET_ARP_BUF(buf) ((struct net_arp_hdr *)net_nbuf_ll(buf))
struct net_arp_hdr {
struct net_eth_hdr eth_hdr;
uint16_t hwtype; /* HTYPE */

View file

@ -104,8 +104,6 @@ static inline struct in_addr *if_get_addr(struct net_if *iface)
return NULL;
}
#define NET_ARP_BUF(buf) ((struct net_arp_hdr *)net_nbuf_ll(buf))
static inline struct net_buf *prepare_arp(struct net_if *iface,
struct arp_entry *entry,
struct net_buf *pending)