tcpdump mailing list archives

Re: libpcap: patches required for OpenSolaris/SXCE build >= 125


From: Guy Harris <guy () alum mit edu>
Date: Wed, 25 Nov 2009 11:42:14 -0800


On Nov 24, 2009, at 3:55 PM, Darren Reed wrote:

#ifdef HAVE_ZEROCOPY_BPF
#include <machine/atomic.h>
@@ -510,7 +511,8 @@
                if (v == DLT_EN10MB) {
                        is_ethernet = 1;
                        for (i = 0; i < bdlp->bfl_len; i++) {
-                               if (bdlp->bfl_list[i] != DLT_EN10MB) {
+                               if (bdlp->bfl_list[i] != DLT_EN10MB  &&
+                                   bdlp->bfl_list[i] != DLT_IPNET) {
                                        is_ethernet = 0;
                                        break;
                                }

The only thing is_ethernet is used for is to add DLT_DOCSIS to the DLT list.

Can I plug a Cisco cable modem head-end device into an IPNET device and have it put DOCSIS frames inside IPNET layer-1 framing, so that you get packets with *no* IPNET header? I suspect the answer is "no", in which case you should not set is_ethernet for DLT_IPNET.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: