summaryrefslogtreecommitdiff
path: root/include/net/garp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/garp.h')
-rw-r--r--include/net/garp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/garp.h b/include/net/garp.h
index c41833bd4590..59a07b171def 100644
--- a/include/net/garp.h
+++ b/include/net/garp.h
@@ -2,6 +2,8 @@
#ifndef _NET_GARP_H
#define _NET_GARP_H
+#include <linux/if_ether.h>
+#include <linux/types.h>
#include <net/stp.h>
#define GARP_PROTOCOL_ID 0x1
@@ -37,7 +39,7 @@ struct garp_skb_cb {
static inline struct garp_skb_cb *garp_cb(struct sk_buff *skb)
{
BUILD_BUG_ON(sizeof(struct garp_skb_cb) >
- FIELD_SIZEOF(struct sk_buff, cb));
+ sizeof_field(struct sk_buff, cb));
return (struct garp_skb_cb *)skb->cb;
}