🐞 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

@@ -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); UINT8 *next_hdr_ptr = (UINT8 *)a_packet + sizeof(struct mesa_ip6_hdr);
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;
} }