summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorPhil Oester <kernel@linuxace.com>2008-08-04 13:30:30 +0200
committerPatrick McHardy <kaber@trash.net>2008-08-04 13:30:30 +0200
commitdee5f0009f7ca1a6d092c3c17450c33c53121b7c (patch)
treecae0e1a9f35963cc6a46c45b50674b1b447c28eb /extensions
parent04c97954d5933fc935616f69a8e63944d5c6cec4 (diff)
libxt_dscp: fix save of negated dscp match rules
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>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libxt_dscp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_dscp.c b/extensions/libxt_dscp.c
index 6aed4990..35519787 100644
--- a/extensions/libxt_dscp.c
+++ b/extensions/libxt_dscp.c
@@ -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);
}