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

/linux-master/net/ipv4/
H A Dgre_offload.c71 struct gre_base_hdr *greh; local
91 greh = (struct gre_base_hdr *)skb_transport_header(skb);
92 pcsum = (__sum16 *)(greh + 1);
115 skb->csum_offset = sizeof(*greh);
127 const struct gre_base_hdr *greh; local
140 hlen = off + sizeof(*greh);
141 greh = skb_gro_header(skb, hlen, off);
142 if (unlikely(!greh))
151 if ((greh->flags & ~(GRE_KEY|GRE_CSUM)) != 0)
159 if ((greh
238 struct gre_base_hdr *greh = (struct gre_base_hdr *)(skb->data + nhoff); local
[all...]
H A Dgre_demux.c65 const struct gre_base_hdr *greh; local
72 greh = (struct gre_base_hdr *)(skb->data + nhs);
73 if (unlikely(greh->flags & (GRE_VERSION | GRE_ROUTING)))
76 tpi->flags = gre_flags_to_tnl_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
[all...]
H A Dip_gre.c860 struct gre_base_hdr *greh; local
863 greh = (struct gre_base_hdr *)(iph+1);
864 greh->flags = gre_tnl_flags_to_gre_flags(t->parms.o_flags);
865 greh->protocol = htons(type);
/linux-master/include/net/
H A Dgre.h113 struct gre_base_hdr *greh; local
119 greh = (struct gre_base_hdr *)skb->data;
120 greh->flags = gre_tnl_flags_to_gre_flags(flags);
121 greh->protocol = proto;
124 __be32 *ptr = (__be32 *)(((u8 *)greh) + hdr_len - 4);
143 skb->csum_offset = sizeof(*greh);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_lwt_ip_encap.c20 struct grehdr greh; member in struct:encap_hdr
41 hdr.greh.protocol = skb->protocol;
56 struct grehdr greh; member in struct:encap_hdr
75 hdr.greh.protocol = skb->protocol;
H A Dtest_tc_tunnel.c604 struct gre_hdr greh; local
632 if (bpf_skb_load_bytes(skb, off + len, &greh, sizeof(greh)) < 0)
634 switch (bpf_ntohs(greh.protocol)) {
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_gre.c32 struct gre_base_hdr *greh = (struct gre_base_hdr *)(buf); local
42 greh->protocol = htons(ETH_P_TEB);
46 greh->flags = gre_tnl_flags_to_gre_flags(tun_key->tun_flags);
48 __be32 *ptr = (__be32 *)(((u8 *)greh) + hdr_len - 4);
/linux-master/net/netfilter/
H A Dnf_flow_table_ip.c224 struct gre_base_hdr *greh; local
226 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff);
227 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0)
621 struct gre_base_hdr *greh; local
623 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff);
624 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0)
H A Dnf_nat_proto.c284 const struct gre_base_hdr *greh; local
292 greh = (void *)skb->data + hdroff;
293 pgreh = (struct pptp_gre_header *)greh;
300 switch (greh->flags & GRE_VERSION) {
/linux-master/net/sched/
H A Dact_ct.c558 struct gre_base_hdr *greh; local
560 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff);
561 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0)
627 struct gre_base_hdr *greh; local
629 greh = (struct gre_base_hdr *)(skb_network_header(skb) + thoff);
630 if ((greh->flags & GRE_VERSION) != GRE_VERSION_0)
/linux-master/tools/testing/selftests/bpf/
H A Dtest_flow_dissector.c263 struct grehdr *greh = header; local
265 greh->protocol = htons(proto);
/linux-master/drivers/net/ethernet/sfc/
H A Defx_common.c1293 struct gre_base_hdr *greh; local
1336 greh = (struct gre_base_hdr *)skb_transport_header(skb);
1337 return !(greh->flags & (GRE_CSUM | GRE_SEQ));
/linux-master/drivers/net/ethernet/sfc/siena/
H A Defx_common.c1310 struct gre_base_hdr *greh; local
1353 greh = (struct gre_base_hdr *)skb_transport_header(skb);
1354 return !(greh->flags & (GRE_CSUM | GRE_SEQ));
/linux-master/net/netfilter/ipvs/
H A Dip_vs_core.c1543 struct gre_base_hdr _greh, *greh; local
1546 greh = skb_header_pointer(skb, offset, sizeof(_greh), &_greh);
1547 if (!greh)
1556 if ((greh->flags & ~GRE_CSUM) != 0)
1558 type = greh->protocol;
1563 return gre_calc_hlen(gre_flags_to_tnl_flags(greh->flags));

Completed in 288 milliseconds