From 7599884a88e4e6ea2cbfe440e5aa59de750e8e7b 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) --- userspace/ebtables2/include/ebtables_u.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'userspace/ebtables2/include') 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 */ -- cgit v1.2.3