🐞 fix(ipv6_jump_to_layer): ipv6报文增加版本号判断

This commit is contained in:
yangwei
2023-07-24 11:48:39 +08:00
parent 71a6040f8a
commit 01c96dadca

View File

@@ -807,6 +807,11 @@ static int ipv6_jump_to_layer(const char *raw_data, int raw_layer_type, int exp
int skip_len = 0; int skip_len = 0;
int offset_to_ip6 = 0; int offset_to_ip6 = 0;
if(a_packet->ip6_flags[0]!= 0x60)
{
return -1;
}
if(raw_layer_type == expect_layer_type){ if(raw_layer_type == expect_layer_type){
return 0; return 0;
} }