On Nov 24, 2014 7:10 PM, "Mike Belopuhov" <m...@belopuhov.com> wrote:
>
> Hi,
>
> IP header is not always aligned since bpf copies out the mbuf
> chain into the contigous buffer provided by the userland.  I've
> seen this with large packet sizes on VLANs.  ip_print will then
> copy the packet but the Ethernet header into the internal buffer
> so that it can cast it to the IP header structure and update
> global packetp and snapend pointers hence preventing the -Xx
> dumping code from printing out the Ethernet header itself.
>
> Diff below fixes it.  OK?
>

Err, I think I've sent the wrong diff.  Please ignore it.  I'll resend
it tomorrow.

Reply via email to