tcpdump mailing list archives
Re: Inefficiency in BPF code for DLT_RAW
From: Guy Harris <guy () alum mit edu>
Date: Wed, 23 Dec 2009 18:09:02 -0800
On Dec 23, 2009, at 2:01 AM, Darren Reed wrote:
The links that support the IP tunnels are a fixed type, be it IPv4 or IPv6, and are reported as being DLT_RAW because there is no real layer 2 header present.
...
In the face of modern processors, this might seem like micro-optimisation but I see it more as a precision error: it is not possible to precisely tell libpcap (and thus the BPF compiler) that a link only sees one protocol and therefore does not need to handle both protocol cases. Thoughts?
DLT_IPv4 and DLT_IPv6? - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Inefficiency in BPF code for DLT_RAW Darren Reed (Dec 23)
- Re: Inefficiency in BPF code for DLT_RAW Guy Harris (Dec 23)
- Re: Inefficiency in BPF code for DLT_RAW Darren Reed (Dec 23)
- Re: Inefficiency in BPF code for DLT_RAW Guy Harris (Dec 23)