From: Jan Engelhardt Date: Sun, 29 Nov 2009 19:33:21 +0000 (+0100) Subject: ACCOUNT: avoid collision with arp_tables setsockopt numbers X-Git-Tag: v1.21~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=351b040f4ac6066d4e6974d39352f3c429b72acd;p=thirdparty%2Fxtables-addons.git ACCOUNT: avoid collision with arp_tables setsockopt numbers --- diff --git a/extensions/ACCOUNT/xt_ACCOUNT.h b/extensions/ACCOUNT/xt_ACCOUNT.h index 1c7e96c..38e17ea 100644 --- a/extensions/ACCOUNT/xt_ACCOUNT.h +++ b/extensions/ACCOUNT/xt_ACCOUNT.h @@ -15,8 +15,13 @@ * Socket option interface shared between kernel (xt_ACCOUNT) and userspace * library (libxt_ACCOUNT_cl). Hopefully we are unique at least within our * kernel & xtables-addons space. + * + * Turned out often enough we are not. + * 64-67 used by ip_tables, ip6_tables + * 96-100 used by arp_tables + * 128-131 used by ebtables */ -#define SO_ACCOUNT_BASE_CTL 90 +#define SO_ACCOUNT_BASE_CTL 70 #define IPT_SO_SET_ACCOUNT_HANDLE_FREE (SO_ACCOUNT_BASE_CTL + 1) #define IPT_SO_SET_ACCOUNT_HANDLE_FREE_ALL (SO_ACCOUNT_BASE_CTL + 2)