IP SET target iptables fix
Hello,
Current iptables target needs to test for IP_SET_INVALID_ID when printing or saving rules from kernel, currently it errors "iptables v1.3.1:
Set id 65535 in kernel doesn't exist."
Patch below fixes this problem:
extensions/libipt_SET.c 2005-03-17 14:18:43.055537000 +0100 renamed from extensions/libipt_SET.c 2005-03-17 14:16:26.005537000 +0100 +2 -0
@@ -121,6 +121,8 @@ int i; char setname[IP_SET_MAXNAMELEN]; + if (info->index == IP_SET_INVALID_ID) + return; get_set_byid(setname, info->index); printf("%s %s", prefix, setname); for (i = 0; i < IP_SET_MAX_BINDINGS; i++) {
Hi,
Quoted 5 lines · Michal Pokrywka
Current iptables target needs to test for
IP_SET_INVALID_IDwhen printing or saving rules from kernel, currently it errors "iptables v1.3.1:
Set id 65535 in kernel doesn't exist."Patch below fixes this problem:
Yes, good catch: patch is applied in svn, iptables shapshot updated on webpage.
Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary