pknock: "strict" and "checkip" flags were not displayed in iptables -L

This commit is contained in:
Jan Rafaj
2009-09-01 19:52:48 +02:00
committed by Jan Engelhardt
parent e05a4d9586
commit 0d8ae29a60
2 changed files with 7 additions and 0 deletions

View File

@@ -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)