summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-04-05 00:05:30 +0200
committerJan Engelhardt <jengelh@medozas.de>2009-04-05 00:05:30 +0200
commit093d5fc9d1826b8f0ccfbb3160c98a3c844d0273 (patch)
treeb97313a63a5e88677293411a724819204aa68962 /extensions
parentc9ccba543b52cb443f110670420967ac6a41c302 (diff)
libxt_conntrack: properly output negation symbol
Because the wrong flag was checked, the "!" was either wrongly printed, or not printed at all. This was broken since v1.4.0-29-ga8ad34c. Reported-by: Steven Jan Springl <steven@springl.ukfsn.org> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libxt_conntrack.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/libxt_conntrack.c b/extensions/libxt_conntrack.c
index a3fcafcc..358b2551 100644
--- a/extensions/libxt_conntrack.c
+++ b/extensions/libxt_conntrack.c
@@ -910,7 +910,7 @@ conntrack_dump(const struct xt_conntrack_mtinfo1 *info, const char *prefix,
}
if (info->match_flags & XT_CONNTRACK_ORIGSRC) {
- if (info->invert_flags & XT_CONNTRACK_PROTO)
+ if (info->invert_flags & XT_CONNTRACK_ORIGSRC)
printf("! ");
printf("%sctorigsrc ", prefix);
conntrack_dump_addr(&info->origsrc_addr, &info->origsrc_mask,
@@ -918,7 +918,7 @@ conntrack_dump(const struct xt_conntrack_mtinfo1 *info, const char *prefix,
}
if (info->match_flags & XT_CONNTRACK_ORIGDST) {
- if (info->invert_flags & XT_CONNTRACK_PROTO)
+ if (info->invert_flags & XT_CONNTRACK_ORIGDST)
printf("! ");
printf("%sctorigdst ", prefix);
conntrack_dump_addr(&info->origdst_addr, &info->origdst_mask,
@@ -926,7 +926,7 @@ conntrack_dump(const struct xt_conntrack_mtinfo1 *info, const char *prefix,
}
if (info->match_flags & XT_CONNTRACK_REPLSRC) {
- if (info->invert_flags & XT_CONNTRACK_PROTO)
+ if (info->invert_flags & XT_CONNTRACK_REPLSRC)
printf("! ");
printf("%sctreplsrc ", prefix);
conntrack_dump_addr(&info->replsrc_addr, &info->replsrc_mask,
@@ -934,7 +934,7 @@ conntrack_dump(const struct xt_conntrack_mtinfo1 *info, const char *prefix,
}
if (info->match_flags & XT_CONNTRACK_REPLDST) {
- if (info->invert_flags & XT_CONNTRACK_PROTO)
+ if (info->invert_flags & XT_CONNTRACK_REPLDST)
printf("! ");
printf("%sctrepldst ", prefix);
conntrack_dump_addr(&info->repldst_addr, &info->repldst_mask,