Uses ip_size in get_ndpi_flow_info6
This commit is contained in:
@@ -898,6 +898,7 @@ static struct ndpi_flow_info *get_ndpi_flow_info6(struct ndpi_workflow * workflo
|
|||||||
ndpi_packet_tunnel tunnel_type,
|
ndpi_packet_tunnel tunnel_type,
|
||||||
const struct ndpi_ipv6hdr *iph6,
|
const struct ndpi_ipv6hdr *iph6,
|
||||||
u_int16_t ip_offset,
|
u_int16_t ip_offset,
|
||||||
|
u_int16_t ipsize,
|
||||||
struct ndpi_tcphdr **tcph,
|
struct ndpi_tcphdr **tcph,
|
||||||
struct ndpi_udphdr **udph,
|
struct ndpi_udphdr **udph,
|
||||||
u_int16_t *sport, u_int16_t *dport,
|
u_int16_t *sport, u_int16_t *dport,
|
||||||
@@ -923,8 +924,7 @@ static struct ndpi_flow_info *get_ndpi_flow_info6(struct ndpi_workflow * workflo
|
|||||||
}
|
}
|
||||||
|
|
||||||
return(get_ndpi_flow_info(workflow, 6, vlan_id, tunnel_type,
|
return(get_ndpi_flow_info(workflow, 6, vlan_id, tunnel_type,
|
||||||
&iph, iph6, ip_offset,
|
&iph, iph6, ip_offset, ipsize,
|
||||||
sizeof(struct ndpi_ipv6hdr),
|
|
||||||
ntohs(iph6->ip6_hdr.ip6_un1_plen),
|
ntohs(iph6->ip6_hdr.ip6_un1_plen),
|
||||||
tcph, udph, sport, dport,
|
tcph, udph, sport, dport,
|
||||||
src, dst, proto, payload,
|
src, dst, proto, payload,
|
||||||
@@ -1162,7 +1162,7 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow,
|
|||||||
&payload, &payload_len, &src_to_dst_direction, when);
|
&payload, &payload_len, &src_to_dst_direction, when);
|
||||||
else
|
else
|
||||||
flow = get_ndpi_flow_info6(workflow, vlan_id,
|
flow = get_ndpi_flow_info6(workflow, vlan_id,
|
||||||
tunnel_type, iph6, ip_offset,
|
tunnel_type, iph6, ip_offset, ipsize,
|
||||||
&tcph, &udph, &sport, &dport,
|
&tcph, &udph, &sport, &dport,
|
||||||
&src, &dst, &proto,
|
&src, &dst, &proto,
|
||||||
&payload, &payload_len, &src_to_dst_direction, when);
|
&payload, &payload_len, &src_to_dst_direction, when);
|
||||||
|
|||||||
Reference in New Issue
Block a user