]> The Tcpdump Group git mirrors - libpcap/commit
Handle DLT_NULL correctly - the AF_ value is in host byte order, which
authorguy <guy>
Sat, 16 Dec 2000 21:31:10 +0000 (21:31 +0000)
committerguy <guy>
Sat, 16 Dec 2000 21:31:10 +0000 (21:31 +0000)
commit7928a0e82399963769aa80aaf889a90bc35baffd
treeeb609e59d3ec2ca8df4b41f80cd7deae223ff360
parentc9452a76667590c4c8137f2b812ae60ac9be80a9
Handle DLT_NULL correctly - the AF_ value is in host byte order, which
means that we should "htonl()" it before using it in BPF expressions
*but*, if we're reading a capture file from a machine with the opposite
byte order from ours, we should byte-swap it before "htonl()"ing it.

Handle OpenBSD DLT_LOOP as well - it's like DLT_NULL except that the AF_
value is in *network* byte order.

Don't support checking for inbound or outbound packets except on those
data link types that supply an inbound/outbound qualifier (DLT_SLIP and
DLT_PPP) - this came from OpenBSD's libpcap, delta 1.12 to "gencode.c".
bpf/net/bpf.h
gencode.c
savefile.c