diff options
author | Michael Brown | 2010-11-27 16:23:46 +0100 |
---|---|---|
committer | Michael Brown | 2010-11-27 17:04:57 +0100 |
commit | c5c0a27b688c50961ad3761a36dd0bd3130e75d7 (patch) | |
tree | 2ee9a59b92ab55c3216c89ff13f4f481a3263fd2 | |
parent | [fcoe] Tidy up debug message (diff) | |
download | ipxe-c5c0a27b688c50961ad3761a36dd0bd3130e75d7.tar.gz ipxe-c5c0a27b688c50961ad3761a36dd0bd3130e75d7.tar.xz ipxe-c5c0a27b688c50961ad3761a36dd0bd3130e75d7.zip |
[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>
-rw-r--r-- | src/include/ipxe/vlan.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/ipxe/vlan.h b/src/include/ipxe/vlan.h index b4d06b87..c9a9821a 100644 --- a/src/include/ipxe/vlan.h +++ b/src/include/ipxe/vlan.h @@ -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 |