commit 9de6f0517f5fef7f18f2e4bba392ed68182e3d47 Author: Jan Engelhardt <jengelh@xxxxxxxxxx> Date: Mon Nov 10 18:01:04 2008 +0100 libxt_conntrack: dump ctdir Sent in as part of a larger private mail by Gáspár Lajos <swifty@xxxxxxxxxxx>; I cherry-picked the ctdir part. Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx> --- extensions/libxt_conntrack.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/extensions/libxt_conntrack.c b/extensions/libxt_conntrack.c index 987e1af..1e5f141 100644 --- a/extensions/libxt_conntrack.c +++ b/extensions/libxt_conntrack.c @@ -879,6 +879,14 @@ matchinfo_print(const void *ip, const struct xt_entry_match *match, int numeric, else printf("%lu:%lu ", sinfo->expires_min, sinfo->expires_max); } + + if (sinfo->flags & XT_CONNTRACK_DIRECTION) { + if (sinfo->invflags & XT_CONNTRACK_DIRECTION) + printf("%sctdir REPLY", optpfx); + else + printf("%sctdir ORIGINAL", optpfx); + } + } static void @@ -976,6 +984,13 @@ conntrack_dump(const struct xt_conntrack_mtinfo1 *info, const char *prefix, printf("%u:%u ", (unsigned int)info->expires_min, (unsigned int)info->expires_max); } + + if (info->match_flags & XT_CONNTRACK_DIRECTION) { + if (info->invert_flags & XT_CONNTRACK_DIRECTION) + printf("%sctdir REPLY", prefix); + else + printf("%sctdir ORIGINAL", prefix); + } } static void conntrack_print(const void *ip, const struct xt_entry_match *match, -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html