Searched refs:greh (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/net/ipv4/
H A Dgre_offload.c24 struct gre_base_hdr *greh; gre_gso_segment() local
46 if (unlikely(!pskb_may_pull(skb, sizeof(*greh)))) gre_gso_segment()
49 greh = (struct gre_base_hdr *)skb_transport_header(skb); gre_gso_segment()
52 if (unlikely(ghl < sizeof(*greh))) gre_gso_segment()
55 csum = !!(greh->flags & GRE_CSUM); gre_gso_segment()
60 skb->protocol = greh->protocol; gre_gso_segment()
99 greh = (struct gre_base_hdr *) gre_gso_segment()
101 pcsum = (__be32 *)(greh + 1); gre_gso_segment()
124 const struct gre_base_hdr *greh; gre_gro_receive() local
132 hlen = off + sizeof(*greh); gre_gro_receive()
133 greh = skb_gro_header_fast(skb, off); gre_gro_receive()
135 greh = skb_gro_header_slow(skb, hlen, off); gre_gro_receive()
136 if (unlikely(!greh)) gre_gro_receive()
146 if ((greh->flags & ~(GRE_KEY|GRE_CSUM)) != 0) gre_gro_receive()
149 type = greh->protocol; gre_gro_receive()
158 if (greh->flags & GRE_KEY) gre_gro_receive()
161 if (greh->flags & GRE_CSUM) gre_gro_receive()
166 greh = skb_gro_header_slow(skb, hlen, off); gre_gro_receive()
167 if (unlikely(!greh)) gre_gro_receive()
172 if ((greh->flags & GRE_CSUM) && !NAPI_GRO_CB(skb)->flush) { gre_gro_receive()
198 if (greh2->flags != greh->flags || gre_gro_receive()
199 greh2->protocol != greh->protocol) { gre_gro_receive()
203 if (greh->flags & GRE_KEY) { gre_gro_receive()
205 if (*(__be32 *)(greh2+1) != *(__be32 *)(greh+1)) { gre_gro_receive()
215 skb_gro_postpull_rcsum(skb, greh, grehlen); gre_gro_receive()
229 struct gre_base_hdr *greh = (struct gre_base_hdr *)(skb->data + nhoff); gre_gro_complete() local
231 unsigned int grehlen = sizeof(*greh); gre_gro_complete()
238 type = greh->protocol; gre_gro_complete()
239 if (greh->flags & GRE_KEY) gre_gro_complete()
242 if (greh->flags & GRE_CSUM) gre_gro_complete()
H A Dip_gre.c187 const struct gre_base_hdr *greh; parse_gre_header() local
194 greh = (struct gre_base_hdr *)skb_transport_header(skb); parse_gre_header()
195 if (unlikely(greh->flags & (GRE_VERSION | GRE_ROUTING))) parse_gre_header()
198 tpi->flags = gre_flags_to_tnl_flags(greh->flags); parse_gre_header()
204 greh = (struct gre_base_hdr *)skb_transport_header(skb); parse_gre_header()
205 tpi->proto = greh->protocol; parse_gre_header()
207 options = (__be32 *)(greh + 1); parse_gre_header()
208 if (greh->flags & GRE_CSUM) { parse_gre_header()
219 if (greh->flags & GRE_KEY) { parse_gre_header()
225 if (unlikely(greh->flags & GRE_SEQ)) { parse_gre_header()
235 if (greh->flags == 0 && tpi->proto == htons(ETH_P_WCCP)) { parse_gre_header()
452 struct gre_base_hdr *greh; build_header() local
457 greh = (struct gre_base_hdr *)skb->data; build_header()
458 greh->flags = tnl_flags_to_gre_flags(flags); build_header()
459 greh->protocol = proto; build_header()
462 __be32 *ptr = (__be32 *)(((u8 *)greh) + hdr_len - 4); build_header()
735 struct gre_base_hdr *greh; ipgre_header() local
738 greh = (struct gre_base_hdr *)(iph+1); ipgre_header()
739 greh->flags = tnl_flags_to_gre_flags(t->parms.o_flags); ipgre_header()
740 greh->protocol = htons(type); ipgre_header()
/linux-4.4.14/net/ipv4/netfilter/
H A Dnf_nat_proto_gre.c91 const struct gre_hdr *greh; gre_manip_pkt() local
99 greh = (void *)skb->data + hdroff; gre_manip_pkt()
100 pgreh = (struct gre_hdr_pptp *)greh; gre_manip_pkt()
106 switch (greh->version) { gre_manip_pkt()

Completed in 164 milliseconds