Home
last modified time | relevance | path

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

/net/ipv4/
A Dgre_offload.c71 struct gre_base_hdr *greh; in gre_gso_segment() local
140 hlen = off + sizeof(*greh); in gre_gro_receive()
142 if (unlikely(!greh)) in gre_gro_receive()
162 type = greh->protocol; in gre_gro_receive()
170 if (greh->flags & GRE_KEY) in gre_gro_receive()
173 if (greh->flags & GRE_CSUM) in gre_gro_receive()
179 if (unlikely(!greh)) in gre_gro_receive()
213 if (greh->flags & GRE_KEY) { in gre_gro_receive()
247 type = greh->protocol; in gre_gro_complete()
248 if (greh->flags & GRE_KEY) in gre_gro_complete()
[all …]
A Dgre_demux.c65 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 gre_flags_to_tnl_flags(tpi->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()
[all …]
A Dip_gre.c893 struct gre_base_hdr *greh; in ipgre_header() local
896 greh = (struct gre_base_hdr *)(iph+1); in ipgre_header()
897 greh->flags = gre_tnl_flags_to_gre_flags(t->parms.o_flags); in ipgre_header()
898 greh->protocol = htons(type); in ipgre_header()
/net/netfilter/
A Dnf_flow_table_ip.c228 struct gre_base_hdr *greh; in nf_flow_tuple_ip() local
230 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in nf_flow_tuple_ip()
231 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in nf_flow_tuple_ip()
628 struct gre_base_hdr *greh; in nf_flow_tuple_ipv6() local
630 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in nf_flow_tuple_ipv6()
631 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in nf_flow_tuple_ipv6()
A Dnf_nat_proto.c244 const struct gre_base_hdr *greh; in gre_manip_pkt() local
252 greh = (void *)skb->data + hdroff; in gre_manip_pkt()
253 pgreh = (struct pptp_gre_header *)greh; in gre_manip_pkt()
260 switch (greh->flags & GRE_VERSION) { in gre_manip_pkt()
/net/sched/
A Dact_ct.c564 struct gre_base_hdr *greh; in tcf_ct_flow_table_fill_tuple_ipv4() local
566 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in tcf_ct_flow_table_fill_tuple_ipv4()
567 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in tcf_ct_flow_table_fill_tuple_ipv4()
633 struct gre_base_hdr *greh; in tcf_ct_flow_table_fill_tuple_ipv6() local
635 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff); in tcf_ct_flow_table_fill_tuple_ipv6()
636 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0) in tcf_ct_flow_table_fill_tuple_ipv6()
/net/netfilter/ipvs/
A Dip_vs_core.c1543 struct gre_base_hdr _greh, *greh; in ipvs_gre_decap() local
1546 greh = skb_header_pointer(skb, offset, sizeof(_greh), &_greh); in ipvs_gre_decap()
1547 if (!greh) in ipvs_gre_decap()
1557 if ((greh->flags & ~GRE_CSUM) != 0) in ipvs_gre_decap()
1559 type = greh->protocol; in ipvs_gre_decap()
1565 gre_flags_to_tnl_flags(flags, greh->flags); in ipvs_gre_decap()

Completed in 24 milliseconds