diff options
| author | yangwei <[email protected]> | 2023-07-24 11:48:39 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2023-07-24 11:48:39 +0800 |
| commit | 01c96dadca4247493730981b0884931620caddaa (patch) | |
| tree | 92d882335c53cffd39e5ab0c48f6d2ac19ad4c1d | |
| parent | 71a6040f8a59a77535130337b8c7b1eb5fd2672f (diff) | |
🐞 fix(ipv6_jump_to_layer): ipv6报文增加版本号判断Fix-hdr-calc-len
| -rw-r--r-- | src/MESA_jump_layer.cpp | 7 |
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; } |
