summaryrefslogtreecommitdiffstats
path: root/include
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
commit6f7130a8707adc260c07cf1cb3e884bf857d0b9e (patch)
tree1adc34406b6eb13b0bfed2ccbf500b707ef063a7 /include
parent57633b17a6bb4b737b13929dcc952fc04b92e0bd (diff)
extend ebt_ip6 to allow matching on ipv6-icmp types/codes (by Florian Westphal)
Diffstat (limited to 'include')
-rw-r--r--include/ebtables_u.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ebtables_u.h b/include/ebtables_u.h
index 006e2dd..dc922dc 100644
--- a/include/ebtables_u.h
+++ b/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 */