From 6f7130a8707adc260c07cf1cb3e884bf857d0b9e Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Tue, 18 Jan 2011 20:08:34 +0000 Subject: extend ebt_ip6 to allow matching on ipv6-icmp types/codes (by Florian Westphal) --- include/ebtables_u.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 */ -- cgit v1.2.3