From af25eb9b8463225827fd38223f36a9c361f2d254 Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Mon, 13 Mar 2017 22:28:09 +0200 Subject: Software mode for latency and flow stat statistics Also supporting QinQ for flow stat Signed-off-by: Ido Barnea --- src/common/Network/Packet/EthernetHeader.h | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'src/common/Network/Packet/EthernetHeader.h') 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" -- cgit 1.2.3-korg