[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20110526.161930.2032005598678118168.davem@davemloft.net>
Date: Thu, 26 May 2011 16:19:30 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: greearb@...delatech.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] af-packet: Add flag to distinguish VID 0 from no-vlan.
From: greearb@...delatech.com
Date: Wed, 25 May 2011 16:36:35 -0700
> From: Ben Greear <greearb@...delatech.com>
>
> 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 <greearb@...delatech.com>
Please do this in tpacket_rcv() too, otherwise the feature
bit won't be available to mmap() users of AF_PACKET.
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists