]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_dscp: fix save of negated dscp match rules
authorPhil Oester <kernel@linuxace.com>
Mon, 4 Aug 2008 11:30:30 +0000 (13:30 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 4 Aug 2008 11:30:30 +0000 (13:30 +0200)
As pointed out by Vyacheslav Garashchenko, iptables-save does not
save negated dscp matches properly.  Fix below.

This closes bugzilla #533.

Phil

Signed-off-by: Phil Oester <kernel@linuxace.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
extensions/libxt_dscp.c

index 6aed4990cc0dfaf45df211e5c191b20789e1d37b..35519787b14c2b109d3b7b812478b190a9e72927 100644 (file)
@@ -119,7 +119,7 @@ static void
 print_dscp(u_int8_t dscp, int invert, int numeric)
 {
        if (invert)
-               fputc('!', stdout);
+               printf("! ");
 
        printf("0x%02x ", dscp);
 }