summaryrefslogtreecommitdiffstats
path: root/src/common/Network/Packet/EthernetHeader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/Network/Packet/EthernetHeader.h')
-rwxr-xr-xsrc/common/Network/Packet/EthernetHeader.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/common/Network/Packet/EthernetHeader.h b/src/common/Network/Packet/EthernetHeader.h
index 002d6c25..cf93e850 100755
--- a/src/common/Network/Packet/EthernetHeader.h
+++ b/src/common/Network/Packet/EthernetHeader.h
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2015-2016 Cisco Systems, Inc.
+Copyright (c) 2015-2017 Cisco Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -36,15 +36,16 @@ public:
{
enum Type
{
- IP = 0x0800,
- VLAN = 0x8100,
- ARP = 0x0806,
- IPv6 = 0x86DD,
- MPLS_Unicast = 0x8847,
- MPLS_Multicast = 0x8848,
- PPP = 0x880b,
- PPPoED = 0x8863,
- PPPoES = 0x8864
+ IP = 0x0800,
+ VLAN = 0x8100,
+ ARP = 0x0806,
+ IPv6 = 0x86DD,
+ MPLS_Unicast = 0x8847,
+ MPLS_Multicast = 0x8848,
+ PPP = 0x880b,
+ PPPoED = 0x8863,
+ PPPoES = 0x8864,
+ QINQ = 0x88A8
};
};
@@ -81,7 +82,8 @@ public:
// Retrieve VLAN fields for tag and protocol information
inline uint16_t getVlanTag ();
inline uint16_t getVlanProtocol ();
-
+ inline uint16_t getQinQTag ();
+ inline uint16_t getQinQProtocol ();
void dump (FILE* fd);
@@ -92,7 +94,8 @@ private:
uint16_t myProtocol;
uint16_t myVlanTag;
uint16_t myVlanProtocol;
-
+ uint16_t myQinQTag;
+ uint16_t myQinQProtocol;
};
#include "EthernetHeader.inl"