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: Eric Dumazet <hidden>
Date: 2011-06-01 17:08:35

Le mercredi 01 juin 2011 à 09:49 -0700, greearb@candelatech.com a
écrit :
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>
---
Acked-by: Eric Dumazet <redacted>

Thanks

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help