summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-11-11 13:42:02 +0200
committerHanoh Haim <hhaim@cisco.com>2016-11-11 13:42:02 +0200
commit6d80194380143cc12ef46c4d430f21e7a1ba2a18 (patch)
tree6107442169d386f8803e546713b0cf1b52611295 /src/common
parent8d0a50a3512593aa2036b297a83ad486349845a1 (diff)
mlx5 stateless latency support
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'src/common')
-rwxr-xr-xsrc/common/Network/Packet/IPHeader.h9
1 files changed, 9 insertions, 0 deletions
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);