X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/d2a5e7c5cd913f9b30696893baac0e0b1f6e870c..refs/heads/libpcap-1.0:/gencode.c diff --git a/gencode.c b/gencode.c index 554240b0..5548e6fd 100644 --- a/gencode.c +++ b/gencode.c @@ -21,7 +21,7 @@ */ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.290.2.17 2008-12-21 19:29:49 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/gencode.c,v 1.290.2.19 2008-12-23 20:14:12 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -1507,6 +1507,16 @@ init_linktype(p) off_nl = -1; off_nl_nosnap = -1; return; + + case DLT_USB_LINUX_MMAPPED: + /* + * Currently, only raw "link[N:M]" filtering is supported. + */ + off_linktype = -1; + off_macpl = -1; + off_nl = -1; + off_nl_nosnap = -1; + return; } bpf_error("unknown data link type %d", linktype); /* NOTREACHED */ @@ -3360,6 +3370,7 @@ gen_linktype(proto) case DLT_USB: case DLT_USB_LINUX: + case DLT_USB_LINUX_MMAPPED: bpf_error("USB link-layer type filtering not implemented"); case DLT_BLUETOOTH_HCI_H4: