Thread (3 messages) flat view 3 messages, 3 authors, 2011-06-02

Re: [PATCH v3] af-packet: Add flag to distinguish VID 0 from no-vlan.

From: David Miller <davem@davemloft.net>
Date: 2011-06-02 04:18:41

From: greearb@candelatech.com
Date: Wed,  1 Jun 2011 09:49:10 -0700
From: Ben Greear <redacted>

Currently, user-space cannot determine if a 0 tcp_vlan_tci
means there is no VLAN tag or the VLAN ID was zero.

Add flag to make this explicit.  User-space can check for
TP_STATUS_VLAN_VALID || tp_vlan_tci > 0, which will be backwards
compatible. Older could would have just checked for tp_vlan_tci,
so it will work no worse than before.

Signed-off-by: Ben Greear <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help