X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3ac4e726becb967e9a60796c1355e31a382d6ec1..5287bffd3f4fa1fda9d7734b45f8cf02391d3855:/print-pflog.c diff --git a/print-pflog.c b/print-pflog.c index b107c09d..387a89b3 100644 --- a/print-pflog.c +++ b/print-pflog.c @@ -19,6 +19,8 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ +/* \summary: OpenBSD packet filter log file printer */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -88,8 +90,8 @@ pflog_print(netdissect_options *ndo, const struct pfloghdr *hdr) { uint32_t rulenr, subrulenr; - rulenr = EXTRACT_32BITS(&hdr->rulenr); - subrulenr = EXTRACT_32BITS(&hdr->subrulenr); + rulenr = EXTRACT_BE_32BITS(&hdr->rulenr); + subrulenr = EXTRACT_BE_32BITS(&hdr->subrulenr); if (subrulenr == (uint32_t)-1) ND_PRINT((ndo, "rule %u/", rulenr)); else