summaryrefslogtreecommitdiff
path: root/print-pflog.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-pflog.c')
-rw-r--r--print-pflog.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/print-pflog.c b/print-pflog.c
index 814c635c..f9e758a0 100644
--- a/print-pflog.c
+++ b/print-pflog.c
@@ -94,8 +94,11 @@ pflog_print(netdissect_options *ndo, const struct pfloghdr *hdr)
subrulenr = GET_BE_U_4(&hdr->subrulenr);
if (subrulenr == (uint32_t)-1)
ND_PRINT("rule %u/", rulenr);
- else
- ND_PRINT("rule %u.%s.%u/", rulenr, hdr->ruleset, subrulenr);
+ else {
+ ND_PRINT("rule %u.", rulenr);
+ nd_printjnp(ndo, hdr->ruleset, PFLOG_RULESET_NAME_SIZE);
+ ND_PRINT(".%u/", subrulenr);
+ }
ND_PRINT("%s: %s %s on %s: ",
tok2str(pf_reasons, "unkn(%u)", GET_U_1(&hdr->reason)),