summaryrefslogtreecommitdiffstats
path: root/contrib/libpcap
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1996-12-18 17:08:13 +0000
committerfenner <fenner@FreeBSD.org>1996-12-18 17:08:13 +0000
commitd3bf3fa350ce0020528a363dae2db0be486a82bf (patch)
treea466fcfda9ef50351df5ce700fec221824c649ae /contrib/libpcap
parent7673f8f6a1d11b6a97e96048f8abb952b06653b0 (diff)
downloadFreeBSD-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.c2
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:
OpenPOWER on IntegriCloud