Home
last modified time | relevance | path

Searched refs:greh (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/net/ipv4/
Dgre_offload.c66 struct gre_base_hdr *greh; in gre_gso_segment() local
86 greh = (struct gre_base_hdr *)skb_transport_header(skb); in gre_gso_segment()
87 pcsum = (__sum16 *)(greh + 1); in gre_gso_segment()
116 const struct gre_base_hdr *greh; in gre_gro_receive() local
129 hlen = off + sizeof(*greh); in gre_gro_receive()
130 greh = skb_gro_header_fast(skb, off); in gre_gro_receive()
132 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive()
133 if (unlikely(!greh)) in gre_gro_receive()
143 if ((greh->flags & ~(GRE_KEY|GRE_CSUM)) != 0) in gre_gro_receive()
151 if ((greh->flags & GRE_CSUM) && NAPI_GRO_CB(skb)->is_fou) in gre_gro_receive()
[all …]
Dgre_demux.c67 const struct gre_base_hdr *greh; in gre_parse_header() local
74 greh = (struct gre_base_hdr *)(skb->data + nhs); in gre_parse_header()
75 if (unlikely(greh->flags & (GRE_VERSION | GRE_ROUTING))) in gre_parse_header()
78 tpi->flags = gre_flags_to_tnl_flags(greh->flags); in gre_parse_header()
84 greh = (struct gre_base_hdr *)(skb->data + nhs); in gre_parse_header()
85 tpi->proto = greh->protocol; in gre_parse_header()
87 options = (__be32 *)(greh + 1); in gre_parse_header()
88 if (greh->flags & GRE_CSUM) { in gre_parse_header()
99 if (greh->flags & GRE_KEY) { in gre_parse_header()
105 if (unlikely(greh->flags & GRE_SEQ)) { in gre_parse_header()
[all …]
Dip_gre.c891 struct gre_base_hdr *greh; in ipgre_header() local
894 greh = (struct gre_base_hdr *)(iph+1); in ipgre_header()
895 greh->flags = gre_tnl_flags_to_gre_flags(t->parms.o_flags); in ipgre_header()
896 greh->protocol = htons(type); in ipgre_header()
/Linux-v4.19/include/net/
Dgre.h115 struct gre_base_hdr *greh; in gre_build_header() local
121 greh = (struct gre_base_hdr *)skb->data; in gre_build_header()
122 greh->flags = gre_tnl_flags_to_gre_flags(flags); in gre_build_header()
123 greh->protocol = proto; in gre_build_header()
126 __be32 *ptr = (__be32 *)(((u8 *)greh) + hdr_len - 4); in gre_build_header()
/Linux-v4.19/net/ipv4/netfilter/
Dnf_nat_proto_gre.c91 const struct gre_base_hdr *greh; in gre_manip_pkt() local
99 greh = (void *)skb->data + hdroff; in gre_manip_pkt()
100 pgreh = (struct pptp_gre_header *)greh; in gre_manip_pkt()
107 switch (greh->flags & GRE_VERSION) { in gre_manip_pkt()
/Linux-v4.19/net/ipv6/
Dip6_gre.c430 const struct gre_base_hdr *greh; in ip6gre_err() local
432 int grehlen = sizeof(*greh); in ip6gre_err()
440 greh = (const struct gre_base_hdr *)(skb->data + offset); in ip6gre_err()
441 flags = greh->flags; in ip6gre_err()
454 greh = (const struct gre_base_hdr *)(skb->data + offset); in ip6gre_err()
458 key, greh->protocol); in ip6gre_err()