mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 08:44:33 +00:00
Fix generated code for DLT_NULL encapsulation.
This fixes PR#bin/2212.
This commit is contained in:
parent
5e2b47dff1
commit
1cdf4fbe44
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=20645
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue