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