diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2012-10-26 13:43:19 +0900 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-10-26 09:49:05 -0700 |
commit | 3e34fbdd62bcd79dad4f62ba6ec920d8f3be71bb (patch) | |
tree | e1918c4ff5f23bbed1cf7ed6786956026fe15689 /lib/packets.h | |
parent | f43e80e023378a2c1ef18d3caee9b76d6d2a6d23 (diff) |
OF11: push_vlan support
This implementes push_vlan with 802.1Q.
NOTE: 802.1AD (QinQ) is not supported. It requires another effort.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/packets.h')
-rw-r--r-- | lib/packets.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/packets.h b/lib/packets.h index 24b51daf..e550be0b 100644 --- a/lib/packets.h +++ b/lib/packets.h @@ -177,7 +177,9 @@ void eth_addr_bitand(const uint8_t src[ETH_ADDR_LEN], #define ETH_TYPE_IP 0x0800 #define ETH_TYPE_ARP 0x0806 -#define ETH_TYPE_VLAN 0x8100 +#define ETH_TYPE_VLAN_8021Q 0x8100 +#define ETH_TYPE_VLAN ETH_TYPE_VLAN_8021Q +#define ETH_TYPE_VLAN_8021AD 0x88a8 #define ETH_TYPE_IPV6 0x86dd #define ETH_TYPE_LACP 0x8809 #define ETH_TYPE_RARP 0x8035 |