diff options
author | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org> | 2006-02-01 12:58:28 +0000 |
---|---|---|
committer | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org> | 2006-02-01 12:58:28 +0000 |
commit | f352514312cccc511ff7ac54762952996dccc17d (patch) | |
tree | 125ac25c54534b2d8a949073529763e3ad2fd527 /extensions/libipt_sctp.c | |
parent | 08776a9cfc2c8d736472ef93c156f2064a6d8b3b (diff) |
Some !%$!*##$@ has modified the kernel include/linux/netfilter_ipv4/ipt_sctp.h
file in a way that breaks userspace :(
Diffstat (limited to 'extensions/libipt_sctp.c')
-rw-r--r-- | extensions/libipt_sctp.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/extensions/libipt_sctp.c b/extensions/libipt_sctp.c index af35f9c..18fe6ad 100644 --- a/extensions/libipt_sctp.c +++ b/extensions/libipt_sctp.c @@ -16,8 +16,21 @@ #include <iptables.h> #include <linux/netfilter_ipv4/ip_tables.h> + +#ifndef ARRAY_SIZE +#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) +#endif + #include <linux/netfilter_ipv4/ipt_sctp.h> +/* Some ZS!#@:$%*#$! has replaced the ELEMCOUNT macro in ipt_sctp.h with + * ARRAY_SIZE without noticing that this file is used from userserspace, + * and userspace doesn't have ARRAY_SIZE */ + +#ifndef ELEMCOUNT +#define ELEMCOUNT ARRAY_SIZE +#endif + #if 0 #define DEBUGP(format, first...) printf(format, ##first) #define static |