Lines Matching full:gre
170 struct gre_hdr *gre, _gre; in parse_ip_proto() local
194 gre = bpf_flow_dissect_get_header(skb, sizeof(*gre), &_gre); in parse_ip_proto()
195 if (!gre) in parse_ip_proto()
198 if (bpf_htons(gre->flags & GRE_VERSION)) in parse_ip_proto()
199 /* Only inspect standard GRE packets with version 0 */ in parse_ip_proto()
202 keys->thoff += sizeof(*gre); /* Step over GRE Flags and Proto */ in parse_ip_proto()
203 if (GRE_IS_CSUM(gre->flags)) in parse_ip_proto()
205 if (GRE_IS_KEY(gre->flags)) in parse_ip_proto()
207 if (GRE_IS_SEQ(gre->flags)) in parse_ip_proto()
214 if (gre->proto == bpf_htons(ETH_P_TEB)) { in parse_ip_proto()
224 return parse_eth_proto(skb, gre->proto); in parse_ip_proto()