Skip to contentSkip to conversation

Fix save of negated dscp match rules

PATCH Applied Phil Oester 2 participants 2 messages Aug 3, 2008 – Aug 4, 2008 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

extensions/libxt_dscp.c +1 -1
@@ -119,7 +119,7 @@
 print_dscp(u_int8_t dscp, int invert, int numeric)
 {
 	if (invert)
-		fputc('!', stdout);
+		printf("! ");
 
  	printf("0x%02x ", dscp);
 }
#1 lore raw
Quoted 4 lines · Phil Oester

As pointed out by Vyacheslav Garashchenko, iptables-save does not save negated dscp matches properly. Fix below.

This closes bugzilla #533.

Applied, thanks.