From 6d80194380143cc12ef46c4d430f21e7a1ba2a18 Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Fri, 11 Nov 2016 13:42:02 +0200 Subject: mlx5 stateless latency support Signed-off-by: Hanoh Haim --- src/common/Network/Packet/IPHeader.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/common/Network') diff --git a/src/common/Network/Packet/IPHeader.h b/src/common/Network/Packet/IPHeader.h index da9ba52c..0bf97fbb 100755 --- a/src/common/Network/Packet/IPHeader.h +++ b/src/common/Network/Packet/IPHeader.h @@ -91,6 +91,15 @@ public: */ inline void setHeaderLength (uint8_t); + inline uint16_t getFirstWord(){ + return PKT_NTOHS(*((uint16_t *)&myVer_HeaderLength)); + } + + inline void setFirstWord (uint16_t word){ + *((uint16_t *)&myVer_HeaderLength) = PKT_NTOHS(word); + } + + inline uint8_t getTOS (); inline void setTOS (uint8_t); -- cgit 1.2.3-korg