fix save() output in libipt_string.c
PATCH 1/1 fix save() output in libipt_string.c
This patch fixes bug #436 where save() in libipt_string.c outputs "--to-offset" and "--from-offset" instead of "--to" and "--from" respectively (breaks iptables-restore whenever string matching rules are included). Tested against iptables-1.3.4 and kernel 2.6.15.1.
extensions/libipt_string.c 2006-01-29 15:51:16.000000000 -0500 renamed from extensions/libipt_string.c.orig 2006-01-29 15:49:56.000000000 -0500 +2 -2
@@ -327,9 +327,9 @@ save(const struct ipt_ip *ip, const stru } printf("--algo %s ", info->algo); if (info->from_offset != 0) - printf("--from-offset %u ", info->from_offset); + printf("--from %u ", info->from_offset); if (info->to_offset != 0) - printf("--to-offset %u ", info->to_offset); + printf("--to %u ", info->to_offset); }
--
Michael Rash
http://www.cipherdyne.org/
Key fingerprint = 53EA 13EA 472E 3771 894F AC69 95D8 5D6B A742 839F
Harald Welte
AppliedQuoted 4 lines · Michael Rash
This patch fixes bug #436 where
save()inlibipt_string.coutputs "--to-offset" and "--from-offset" instead of "--to" and "--from" respectively (breaks iptables-restore whenever string matching rules are included). Tested against iptables-1.3.4 and kernel 2.6.15.1.
thanks, applied.
Signature · 5 lines
- Harald Welte <[email protected]> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie