]> The Tcpdump Group git mirrors - libpcap/commit
Simplify the handling of new DLT_/LINKTYPE_ values.
authorGuy Harris <[email protected]>
Sat, 17 Dec 2011 19:59:01 +0000 (11:59 -0800)
committerGuy Harris <[email protected]>
Sat, 17 Dec 2011 19:59:01 +0000 (11:59 -0800)
commita021ef22cc6fb91aa0771f60a3d00088c32acef5
tree590405d4aad52d583b61f49b70612e1a14c4882b
parent90808d9a3b3b147a5254d2c7207eaf86aa99e2e6
Simplify the handling of new DLT_/LINKTYPE_ values.

Add #defines for the minimum and maximum DLT_/LINKTYPE_ values in the
range of new values.

In that range, a given DLT_ and a given LINKTYPE_ have the same
numerical value; don't require entries in the DLT_-to-LINKTYPE_ table
for them.

Also, in that range, all DLT_ values are presumed valid; in the filter
code generator, for values that don't have any code to handle them,
support raw "link[N:M]" filtering rather than rejecting all filters.
gencode.c
pcap-common.c
pcap/bpf.h