Lines Matching defs:greh
65 const struct gre_base_hdr *greh;
72 greh = (struct gre_base_hdr *)(skb->data + nhs);
73 if (unlikely(greh->flags & (GRE_VERSION | GRE_ROUTING)))
76 gre_flags_to_tnl_flags(tpi->flags, greh->flags);
82 greh = (struct gre_base_hdr *)(skb->data + nhs);
83 tpi->proto = greh->protocol;
85 options = (__be32 *)(greh + 1);
86 if (greh->flags & GRE_CSUM) {
98 if (greh->flags & GRE_KEY) {
104 if (unlikely(greh->flags & GRE_SEQ)) {
114 if (greh->flags == 0 && tpi->proto == htons(ETH_P_WCCP)) {
131 if ((greh->protocol == htons(ETH_P_ERSPAN) && hdr_len != 4) ||
132 greh->protocol == htons(ETH_P_ERSPAN2)) {