summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/include/ebtables_u.h
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2011-01-18 20:08:34 +0000
committerBart De Schuymer <bdschuym@pandora.be>2011-01-18 20:08:34 +0000
commit7599884a88e4e6ea2cbfe440e5aa59de750e8e7b (patch)
tree6f8e8efc930cae02e85d1cea7e8136d518c6073d /userspace/ebtables2/include/ebtables_u.h
parent74475af3b392a5fc3f21141fa060734b5bea2366 (diff)
extend ebt_ip6 to allow matching on ipv6-icmp types/codes (by Florian Westphal)
Diffstat (limited to 'userspace/ebtables2/include/ebtables_u.h')
-rw-r--r--userspace/ebtables2/include/ebtables_u.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/userspace/ebtables2/include/ebtables_u.h b/userspace/ebtables2/include/ebtables_u.h
index 006e2dd..dc922dc 100644
--- a/userspace/ebtables2/include/ebtables_u.h
+++ b/userspace/ebtables2/include/ebtables_u.h
@@ -377,4 +377,8 @@ extern int ebt_printstyle_mac;
#define PROC_SYS_MODPROBE "/proc/sys/kernel/modprobe"
#endif
#define ATOMIC_ENV_VARIABLE "EBTABLES_ATOMIC_FILE"
+
+#ifndef ARRAY_SIZE
+# define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#endif
#endif /* EBTABLES_U_H */