# Re: expected behavior of PF\_PACKET on NETIF\_F\_HW\_VLAN\_RX device?

- From: David Miller \<davem@davemloft.net\>
- Date: 2007-11-01 22:07:40 
- List: netdev
- Page: https://ratatoskr.run/netdev/2007/11/1021925
- Thread: https://ratatoskr.run/netdev/2007/10/1021413/t.md

```text
From: Rick Jones <redacted>
Date: Thu, 01 Nov 2007 15:04:12 -0700

> David Miller wrote:
> > From: Rick Jones <redacted>
> > Date: Thu, 01 Nov 2007 14:48:45 -0700
> > 
> > 
> >>One could I suppose try to ammend the information passed to allow
> >>tcpdump to say "oh, this was a tx packet on the same machine on
> >>which I am tracing so don't worry about checksum mismatch"
> > 
> > 
> > We do this already!
> 
> I'll try to go pester folks in tcpdump-workers then.

The thing to check is "TP_STATUS_CSUMNOTREADY".

When using mmap(), it will be provided in the descriptor.  When using
recvmsg() it will be provided via a PACKET_AUXDATA control message
when enabled via the PACKET_AUXDATA socket option.


```
