All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Another save/restore buglet
@ 2005-05-18 23:10 Tom Eastep
  2005-05-20 10:40 ` Pawel Sikora
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Eastep @ 2005-05-18 23:10 UTC (permalink / raw)
  To: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 579 bytes --]

This time, it's the CONNMARK extention that is producing saved output
that won't restore.

gateway:/etc/test# iptables-save > save
gateway:/etc/test# iptables-restore < save
iptables-restore v1.3.1: Bad MASK value `ff'
Error occurred at line: 24
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
gateway:/etc/test#

Patch attached.

-Tom
-- 
Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
Shoreline,     \ http://shorewall.net
Washington USA  \ teastep@shorewall.net
PGP Public Key   \ https://lists.shorewall.net/teastep.pgp.key

[-- Attachment #2: CONNMARK.diff --]
[-- Type: text/x-patch, Size: 289 bytes --]

--- libipt_CONNMARK.c~	2005-05-04 13:44:08.000000000 -0700
+++ libipt_CONNMARK.c	2005-05-18 16:01:07.000000000 -0700
@@ -165,7 +165,7 @@
 print_mask(const char *text, unsigned long mask)
 {
 	if (mask != ~0UL)
-		printf("%s%lx", text, mask);
+		printf("%s0x%lx", text, mask);
 }
 #endif
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-11 16:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-18 23:10 [PATCH] Another save/restore buglet Tom Eastep
2005-05-20 10:40 ` Pawel Sikora
2005-06-11 16:06   ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.