X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3ac4e726becb967e9a60796c1355e31a382d6ec1..de0c7fc746c37eb83e15a6890d30dc6f608e9d76:/print-pflog.c diff --git a/print-pflog.c b/print-pflog.c index b107c09d..d53fea81 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_U_4(&hdr->rulenr); + subrulenr = EXTRACT_BE_U_4(&hdr->subrulenr); if (subrulenr == (uint32_t)-1) ND_PRINT((ndo, "rule %u/", rulenr)); else