X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/89fc495c07b6c29d5d713c004d2a02c0cc84728c..c39d40a767a1ae36171e5bcbf6f157ff3e80fb6c:/print-pflog.c diff --git a/print-pflog.c b/print-pflog.c index 4d53cea6..eb1b1766 100644 --- a/print-pflog.c +++ b/print-pflog.c @@ -100,11 +100,12 @@ pflog_print(netdissect_options *ndo, const struct pfloghdr *hdr) 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