mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-16 18:48:12 +00:00
[vlan] Treat VLAN 0 as valid
VLAN headers are allowed to contain a VLAN tag of zero, indicating that the header specifies only a priority and that the packet does not belong to any VLAN. The easiest way to handle this is to treat VLAN 0 as being a normal VLAN. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
98817e2c38
commit
c5c0a27b68
@ -49,7 +49,7 @@ struct vlan_header {
|
||||
* @v tag VLAN tag
|
||||
* @ret is_valid VLAN tag is valid
|
||||
*/
|
||||
#define VLAN_TAG_IS_VALID( tag ) ( ( (tag) >= 1 ) && ( (tag) < 0xfff ) )
|
||||
#define VLAN_TAG_IS_VALID( tag ) ( (tag) < 0xfff )
|
||||
|
||||
/**
|
||||
* Check VLAN priority is valid
|
||||
|
Loading…
x
Reference in New Issue
Block a user