summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/MESA_jump_layer.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/MESA_jump_layer.cpp b/src/MESA_jump_layer.cpp
index c24a4f0..608588b 100644
--- a/src/MESA_jump_layer.cpp
+++ b/src/MESA_jump_layer.cpp
@@ -806,7 +806,12 @@ static int ipv6_jump_to_layer(const char *raw_data, int raw_layer_type, int exp
UINT8 *next_hdr_ptr = (UINT8 *)a_packet + sizeof(struct mesa_ip6_hdr);
int skip_len = 0;
int offset_to_ip6 = 0;
-
+
+ if(a_packet->ip6_flags[0]!= 0x60)
+ {
+ return -1;
+ }
+
if(raw_layer_type == expect_layer_type){
return 0;
}