X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/833305f9288d19f46158cb7932d32fad176f3e28..c518a9aab149da1a6b83c0cbeddaff5265d05dcb:/print-pflog.c diff --git a/print-pflog.c b/print-pflog.c index f9e758a0..eb1b1766 100644 --- a/print-pflog.c +++ b/print-pflog.c @@ -96,15 +96,16 @@ pflog_print(netdissect_options *ndo, const struct pfloghdr *hdr) ND_PRINT("rule %u/", rulenr); else { ND_PRINT("rule %u.", rulenr); - nd_printjnp(ndo, hdr->ruleset, PFLOG_RULESET_NAME_SIZE); + nd_printjnp(ndo, (const u_char*)hdr->ruleset, PFLOG_RULESET_NAME_SIZE); ND_PRINT(".%u/", subrulenr); } - ND_PRINT("%s: %s %s on %s: ", + ND_PRINT("%s: %s %s on ", tok2str(pf_reasons, "unkn(%u)", GET_U_1(&hdr->reason)), tok2str(pf_actions, "unkn(%u)", GET_U_1(&hdr->action)), - tok2str(pf_directions, "unkn(%u)", GET_U_1(&hdr->dir)), - hdr->ifname); + tok2str(pf_directions, "unkn(%u)", GET_U_1(&hdr->dir))); + nd_printjnp(ndo, (const u_char*)hdr->ifname, IFNAMSIZ); + ND_PRINT(": "); } void