]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
ACCOUNT: avoid collision with arp_tables setsockopt numbers
authorJan Engelhardt <jengelh@medozas.de>
Sun, 29 Nov 2009 19:33:21 +0000 (20:33 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Sun, 29 Nov 2009 19:35:39 +0000 (20:35 +0100)
extensions/ACCOUNT/xt_ACCOUNT.h

index 1c7e96c98450532958d0a2ba9747034bb0ff79ca..38e17ea0fdd42b6c0c263f55b51e814dffe28eee 100644 (file)
  * 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)