include/uapi/linux/netfilter_bridge/ebt_nat.h: include linux/if_ether.h

Started by Mikko Rapeli on May 30, 2015

Subsystems (2)

Maintainers (3)

DORMANTno replies SUPERSEDED

Status: Superseded by v05 (posted 2016-08-22). [go to v05]

Revision v03 (3 revisions archived).

Revisions (3)
  1. v03 current
  2. v4 [diff against previous]
  3. v05 [diff against previous] re-posted go to this post

open the first message on its own page

Message details and related content
Fixes userspace compile error:

error: ‘ETH_ALEN’ undeclared here (not in a function)
 unsigned char mac[ETH_ALEN];

Signed-off-by: Mikko Rapeli <redacted>
---
 include/uapi/linux/netfilter_bridge/ebt_nat.h | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/include/uapi/linux/netfilter_bridge/ebt_nat.h b/include/uapi/linux/netfilter_bridge/ebt_nat.h
index 5e74e3b..c990d74 100644
--- a/include/uapi/linux/netfilter_bridge/ebt_nat.h
+++ b/include/uapi/linux/netfilter_bridge/ebt_nat.h
@@ -1,6 +1,8 @@
 #ifndef __LINUX_BRIDGE_EBT_NAT_H
 #define __LINUX_BRIDGE_EBT_NAT_H
 
+#include <linux/if_ether.h>
+
 #define NAT_ARP_BIT  (0x00000010)
 struct ebt_nat_info {
 	unsigned char mac[ETH_ALEN];
-- 
2.1.4
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help