X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/3d142fa623f6d7d2e8d2e2e82a1f50a2295e8587..4fc98f5dd4c64a98de233abec602b59601280204:/gencode.c diff --git a/gencode.c b/gencode.c index 3ddd8b4c..7cd144cd 100644 --- a/gencode.c +++ b/gencode.c @@ -47,6 +47,7 @@ #include "pcap/sll.h" #include "pcap/ipnet.h" #include "diag-control.h" +#include "pcap-util.h" #include "scanner.h" @@ -2097,14 +2098,6 @@ gen_false(compiler_state_t *cstate) return gen_uncond(cstate, 0); } -/* - * Byte-swap a 32-bit number. - * ("htonl()" or "ntohl()" won't work - we want to byte-swap even on - * big-endian platforms.) - */ -#define SWAPLONG(y) \ -((((y)&0xff)<<24) | (((y)&0xff00)<<8) | (((y)&0xff0000)>>8) | (((y)>>24)&0xff)) - /* * Generate code to match a particular packet type. *