Searched refs:greh (Results 1 - 14 of 14) sorted by last modified time
/linux-master/net/netfilter/ |
H A D | nf_flow_table_ip.c | 224 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 D | nf_nat_proto.c | 284 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/netfilter/ipvs/ |
H A D | ip_vs_core.c | 1543 struct gre_base_hdr _greh, *greh; local 1546 greh = skb_header_pointer(skb, offset, sizeof(_greh), &_greh); 1547 if (!greh) 1557 if ((greh->flags & ~GRE_CSUM) != 0) 1559 type = greh->protocol; 1565 gre_flags_to_tnl_flags(flags, greh->flags);
|
/linux-master/net/ipv4/ |
H A D | ip_gre.c | 888 struct gre_base_hdr *greh; local 891 greh = (struct gre_base_hdr *)(iph+1); 892 greh->flags = gre_tnl_flags_to_gre_flags(t->parms.o_flags); 893 greh->protocol = htons(type);
|
H A D | gre_demux.c | 65 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 gre_flags_to_tnl_flags(tpi->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 D | gre_offload.c | 71 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...] |
/linux-master/include/net/ |
H A D | gre.h | 107 struct gre_base_hdr *greh; local 113 greh = (struct gre_base_hdr *)skb->data; 114 greh->flags = gre_tnl_flags_to_gre_flags(flags); 115 greh->protocol = proto; 122 __be32 *ptr = (__be32 *)(((u8 *)greh) + hdr_len - 4); 141 skb->csum_offset = sizeof(*greh);
|
/linux-master/drivers/net/ethernet/sfc/siena/ |
H A D | efx_common.c | 1310 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/drivers/net/ethernet/sfc/ |
H A D | efx_common.c | 1293 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/mellanox/mlx5/core/en/ |
H A D | tc_tun_gre.c | 32 struct gre_base_hdr *greh = (struct gre_base_hdr *)(buf); local 46 greh->protocol = htons(ETH_P_TEB); 50 greh->flags = gre_tnl_flags_to_gre_flags(tun_key->tun_flags); 52 __be32 *ptr = (__be32 *)(((u8 *)greh) + hdr_len - 4);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 604 struct gre_hdr greh; local 632 if (bpf_skb_load_bytes(skb, off + len, &greh, sizeof(greh)) < 0) 634 switch (bpf_ntohs(greh.protocol)) {
|
H A D | test_lwt_ip_encap.c | 20 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;
|
/linux-master/net/sched/ |
H A D | act_ct.c | 558 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 D | test_flow_dissector.c | 263 struct grehdr *greh = header; local 265 greh->protocol = htons(proto);
|
Completed in 453 milliseconds