summaryrefslogtreecommitdiffstats
path: root/extensions/libebt_pkttype.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libebt_pkttype.c')
-rw-r--r--extensions/libebt_pkttype.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/extensions/libebt_pkttype.c b/extensions/libebt_pkttype.c
index 265674d1..4e2d19de 100644
--- a/extensions/libebt_pkttype.c
+++ b/extensions/libebt_pkttype.c
@@ -75,10 +75,7 @@ static void brpkttype_print(const void *ip, const struct xt_entry_match *match,
{
struct ebt_pkttype_info *pt = (struct ebt_pkttype_info *)match->data;
- if (pt->invert)
- printf("! ");
-
- printf("--pkttype-type ");
+ printf("--pkttype-type %s", pt->invert ? "! " : "");
if (pt->pkt_type < ARRAY_SIZE(classes))
printf("%s ", classes[pt->pkt_type]);