From: Jan Rafaj Date: Tue, 1 Sep 2009 17:52:48 +0000 (+0200) Subject: pknock: "strict" and "checkip" flags were not displayed in `iptables -L` X-Git-Tag: v1.19~2^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d8ae29a60d492445f480f951ca3402fee2d95ec;p=thirdparty%2Fxtables-addons.git pknock: "strict" and "checkip" flags were not displayed in `iptables -L` --- diff --git a/doc/changelog.txt b/doc/changelog.txt index 8e95275..dc96fa5 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,6 +1,9 @@ - build: compile fixes for 2.6.31-rt +- added reworked xt_pknock module + Changes from pknock v0.5: + - pknock: "strict" and "checkip" flags were not displayed in `iptables -L` Xtables-addons 1.18 (September 09 2009) diff --git a/extensions/libxt_pknock.c b/extensions/libxt_pknock.c index b3b6c5f..412e291 100644 --- a/extensions/libxt_pknock.c +++ b/extensions/libxt_pknock.c @@ -290,6 +290,10 @@ static void pknock_mt_print(const void *ip, printf("opensecret "); if (info->option & XT_PKNOCK_CLOSESECRET) printf("closesecret "); + if (info->option & XT_PKNOCK_STRICT) + printf("strict "); + if (info->option & XT_PKNOCK_CHECKIP) + printf("checkip "); } static void pknock_mt_save(const void *ip, const struct xt_entry_match *match)