[iptables] MARK: print mark rules with mask 0xffffffff as --set-mark instead of --set-xmark

Patrick McHardy netfilter-cvslog-bounces at lists.netfilter.org
Wed Nov 4 13:04:46 CET 2009


Gitweb:		http://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commit;h=3d915e1ac610bce44250b4aea556f4726387388d
commit 3d915e1ac610bce44250b4aea556f4726387388d
Author:     Patrick McHardy <kaber at trash.net>
AuthorDate: Wed Nov 4 13:03:50 2009 +0100
Commit:     Patrick McHardy <kaber at trash.net>
CommitDate: Wed Nov 4 13:03:50 2009 +0100

    MARK: print mark rules with mask 0xffffffff as --set-mark instead of --set-xmark
    
    Signed-off-by: Patrick McHardy <kaber at trash.net>
       via  3d915e1ac610bce44250b4aea556f4726387388d (commit)
      from  bbe83862a5e1baf15f7c923352d4afdf59bc70e2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3d915e1ac610bce44250b4aea556f4726387388d
Author: Patrick McHardy <kaber at trash.net>
Date:   Wed Nov 4 13:03:50 2009 +0100

    MARK: print mark rules with mask 0xffffffff as --set-mark instead of --set-xmark
    
    Signed-off-by: Patrick McHardy <kaber at trash.net>

-----------------------------------------------------------------------

 extensions/libxt_MARK.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Signed-off-by: Patrick McHardy <kaber at trash.net>

diff --git a/extensions/libxt_MARK.c b/extensions/libxt_MARK.c
index f6a2c5c..9aeaefc 100644
--- a/extensions/libxt_MARK.c
+++ b/extensions/libxt_MARK.c
@@ -247,6 +247,8 @@ static void mark_tg_print(const void *ip, const struct xt_entry_target *target,
 		printf("MARK or 0x%x ", info->mark);
 	else if (info->mask == 0)
 		printf("MARK xor 0x%x ", info->mark);
+	else if (info->mask == 0xffffffffU)
+		printf("MARK set 0x%x ", info->mark);
 	else
 		printf("MARK xset 0x%x/0x%x ", info->mark, info->mask);
 }



More information about the netfilter-cvslog mailing list