]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-common.c
Pick up extract.h stuff from tcpdump, and use it in bpf_filter.c.
[libpcap] / pcap-common.c
index ca809996540e0d101b31bfce33f268265436bb1e..b09cdeb1c0c5ee94302e1d5375caae2334e21afe 100644 (file)
@@ -1283,7 +1283,7 @@ swap_linux_sll_header(const struct pcap_pkthdr *hdr, u_char *buf)
                return;
        }
 
-       protocol = EXTRACT_16BITS(&shdr->sll_protocol);
+       protocol = EXTRACT_BE_U_2(&shdr->sll_protocol);
        if (protocol != LINUX_SLL_P_CAN && protocol != LINUX_SLL_P_CANFD)
                return;