Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix GTP-U length header field in encoding
[vpp.git]
/
src
/
plugins
/
gtpu
/
gtpu.h
diff --git
a/src/plugins/gtpu/gtpu.h
b/src/plugins/gtpu/gtpu.h
index
6331aa3
..
0520875
100644
(file)
--- a/
src/plugins/gtpu/gtpu.h
+++ b/
src/plugins/gtpu/gtpu.h
@@
-55,13
+55,15
@@
typedef struct
{
u8 ver_flags;
u8 type;
{
u8 ver_flags;
u8 type;
- u16 length; /* length in octets of the
payload
*/
+ u16 length; /* length in octets of the
data following the fixed part of the header
*/
u32 teid;
u16 sequence;
u8 pdu_number;
u8 next_ext_type;
} gtpu_header_t;
u32 teid;
u16 sequence;
u8 pdu_number;
u8 next_ext_type;
} gtpu_header_t;
+#define GTPU_V1_HDR_LEN 8
+
#define GTPU_VER_MASK (7<<5)
#define GTPU_PT_BIT (1<<4)
#define GTPU_E_BIT (1<<2)
#define GTPU_VER_MASK (7<<5)
#define GTPU_PT_BIT (1<<4)
#define GTPU_E_BIT (1<<2)