diff options
Diffstat (limited to 'contrib/tcpdump/print-pflog.c')
-rw-r--r-- | contrib/tcpdump/print-pflog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/tcpdump/print-pflog.c b/contrib/tcpdump/print-pflog.c index 972cb4b1328c..0cacabfc6e44 100644 --- a/contrib/tcpdump/print-pflog.c +++ b/contrib/tcpdump/print-pflog.c @@ -42,6 +42,7 @@ static const char rcsid[] _U_ = #include <stdio.h> #include <pcap.h> +#include "extract.h" #include "interface.h" #include "addrtoname.h" @@ -94,8 +95,8 @@ pflog_print(const struct pfloghdr *hdr) { u_int32_t rulenr, subrulenr; - rulenr = ntohl(hdr->rulenr); - subrulenr = ntohl(hdr->subrulenr); + rulenr = EXTRACT_32BITS(&hdr->rulenr); + subrulenr = EXTRACT_32BITS(&hdr->subrulenr); if (subrulenr == (u_int32_t)-1) printf("rule %u/", rulenr); else |