diff options
author | fenner <fenner@FreeBSD.org> | 1996-12-18 17:08:13 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1996-12-18 17:08:13 +0000 |
commit | d3bf3fa350ce0020528a363dae2db0be486a82bf (patch) | |
tree | a466fcfda9ef50351df5ce700fec221824c649ae /contrib/libpcap | |
parent | 7673f8f6a1d11b6a97e96048f8abb952b06653b0 (diff) | |
download | FreeBSD-src-d3bf3fa350ce0020528a363dae2db0be486a82bf.zip FreeBSD-src-d3bf3fa350ce0020528a363dae2db0be486a82bf.tar.gz |
Fix generated code for DLT_NULL encapsulation.
This fixes PR#bin/2212.
Diffstat (limited to 'contrib/libpcap')
-rw-r--r-- | contrib/libpcap/gencode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libpcap/gencode.c b/contrib/libpcap/gencode.c index 126e228..405c97c 100644 --- a/contrib/libpcap/gencode.c +++ b/contrib/libpcap/gencode.c @@ -564,7 +564,7 @@ gen_linktype(proto) case DLT_NULL: /* XXX */ if (proto == ETHERTYPE_IP) - return (gen_cmp(0, BPF_W, (bpf_int32)AF_INET)); + return (gen_cmp(0, BPF_W, (bpf_int32)htonl(AF_INET))); else return gen_false(); case DLT_EN10MB: |