diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2011-01-18 20:08:34 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2011-01-18 20:08:34 +0000 |
commit | 6f7130a8707adc260c07cf1cb3e884bf857d0b9e (patch) | |
tree | 1adc34406b6eb13b0bfed2ccbf500b707ef063a7 /include | |
parent | 57633b17a6bb4b737b13929dcc952fc04b92e0bd (diff) | |
download | ebtables-6f7130a8707adc260c07cf1cb3e884bf857d0b9e.tar.gz |
extend ebt_ip6 to allow matching on ipv6-icmp types/codes (by Florian Westphal)
Diffstat (limited to 'include')
-rw-r--r-- | include/ebtables_u.h | 4 |
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 */ |