Lines Matching refs:data_end
22 static int tcp(void *data, uint64_t tp_off, void *data_end) in tcp() argument
26 if (tcp + 1 > data_end) in tcp()
33 static int udp(void *data, uint64_t tp_off, void *data_end) in udp() argument
37 if (udp + 1 > data_end) in udp()
51 static int parse_ipv4(void *data, uint64_t nh_off, void *data_end) in parse_ipv4() argument
57 if (iph + 1 > data_end) in parse_ipv4()
66 if (iph + 1 > data_end) in parse_ipv4()
72 return tcp(data, nh_off + ihl_len, data_end); in parse_ipv4()
74 return udp(data, nh_off + ihl_len, data_end); in parse_ipv4()
78 static int parse_ipv6(void *data, uint64_t nh_off, void *data_end) in parse_ipv6() argument
86 if (ip6h + 1 > data_end) in parse_ipv6()
93 if (iph + 1 > data_end) in parse_ipv6()
99 if (ip6h + 1 > data_end) in parse_ipv6()
106 return tcp(data, nh_off + ihl_len, data_end); in parse_ipv6()
108 return udp(data, nh_off + ihl_len, data_end); in parse_ipv6()
117 void *data_end = (void *)(long)skb->data_end; in handle_ingress() local
121 if (data + nh_off > data_end) in handle_ingress()
131 if (data + nh_off > data_end) in handle_ingress()
140 if (data + nh_off > data_end) in handle_ingress()
145 return parse_ipv4(data, nh_off, data_end); in handle_ingress()
147 return parse_ipv6(data, nh_off, data_end); in handle_ingress()