Home
last modified time | relevance | path

Searched full:gre (Results 1 – 25 of 134) sorted by relevance

123456

/Linux-v5.15/net/netfilter/
Dnf_conntrack_proto_gre.c3 * Connection tracking protocol helper module for GRE.
5 * GRE is a generic encapsulation protocol, which is generally not very
11 * GRE is defined in RFC 1701 and RFC 1702, as well as RFC 2784
13 * PPTP is built on top of a modified version of GRE, and has a mandatory
15 * field in plain GRE.
55 return &net->ct.nf_ct_proto.gre; in gre_pernet()
77 key = km->tuple.src.u.gre.key; in gre_keymap_lookup()
150 /* gre hdr info to tuple */
160 /* first only delinearize old RFC1701 GRE header */ in gre_pkt_to_tuple()
175 pr_debug("Unsupported GRE proto(0x%x)\n", ntohs(grehdr->protocol)); in gre_pkt_to_tuple()
[all …]
Dnf_conntrack_pptp.c8 * GRE is defined in RFC 1701 and RFC 1702. Documentation of
118 /* increase timeout of GRE data channel conntrack entry */ in pptp_expectfn()
119 ct->proto.gre.timeout = PPTP_GRE_TIMEOUT; in pptp_expectfn()
120 ct->proto.gre.stream_timeout = PPTP_GRE_STREAM_TIMEOUT; in pptp_expectfn()
165 sibling->proto.gre.timeout = 0; in destroy_sibling_or_exp()
166 sibling->proto.gre.stream_timeout = 0; in destroy_sibling_or_exp()
182 /* timeout GRE data connections */
194 t.src.u.gre.key = ct_pptp_info->pns_call_id; in pptp_destroy_siblings()
195 t.dst.u.gre.key = ct_pptp_info->pac_call_id; in pptp_destroy_siblings()
202 t.src.u.gre.key = ct_pptp_info->pac_call_id; in pptp_destroy_siblings()
[all …]
/Linux-v5.15/arch/x86/kernel/apic/
Dx2apic_uv_x.c604 struct uv_gam_range_entry *gre = uv_gre_table; in build_uv_gr_table() local
609 if (!gre) in build_uv_gr_table()
617 for (; gre->type != UV_GAM_RANGE_TYPE_UNUSED; gre++) { in build_uv_gr_table()
618 if (gre->type == UV_GAM_RANGE_TYPE_HOLE) { in build_uv_gr_table()
622 last_limit = gre->limit; in build_uv_gr_table()
626 last_limit = gre->limit; in build_uv_gr_table()
627 pr_info("UV: extra hole in GAM RE table @%d\n", (int)(gre - uv_gre_table)); in build_uv_gr_table()
630 if (_max_socket < gre->sockid) { in build_uv_gr_table()
631 …pr_err("UV: GAM table sockid(%d) too large(>%d) @%d\n", gre->sockid, _max_socket, (int)(gre - uv_g… in build_uv_gr_table()
634 sid = gre->sockid - _min_socket; in build_uv_gr_table()
[all …]
/Linux-v5.15/tools/testing/selftests/net/forwarding/
Dipip_flat_gre.sh4 # Test IP-in-IP GRE tunnel without key.
29 sw1_flat_create gre $ol1 $ul1
30 sw2_flat_create gre $ol2 $ul2
37 ping_test $h1 192.0.2.18 " gre flat"
42 test_mtu_change gre
Dipip_flat_gre_key.sh4 # Test IP-in-IP GRE tunnel with key.
29 sw1_flat_create gre $ol1 $ul1 key 233
30 sw2_flat_create gre $ol2 $ul2 key 233
37 ping_test $h1 192.0.2.18 " gre flat with key"
42 test_mtu_change gre
Dipip_hier_gre.sh4 # Test IP-in-IP GRE tunnels without key.
29 sw1_hierarchical_create gre $ol1 $ul1
30 sw2_hierarchical_create gre $ol2 $ul2
37 ping_test $h1 192.0.2.18 " gre hierarchical"
42 test_mtu_change gre
Dipip_hier_gre_key.sh4 # Test IP-in-IP GRE tunnels without key.
29 sw1_hierarchical_create gre $ol1 $ul1 key 22
30 sw2_hierarchical_create gre $ol2 $ul2 key 22
37 ping_test $h1 192.0.2.18 " gre hierarchical with key"
42 test_mtu_change gre
Dipip_flat_gre_keys.sh4 # Test IP-in-IP GRE tunnel with key.
29 sw1_flat_create gre $ol1 $ul1 ikey 111 okey 222
30 sw2_flat_create gre $ol2 $ul2 ikey 222 okey 111
37 ping_test $h1 192.0.2.18 " gre flat with ikey/okey"
42 test_mtu_change gre
Dipip_hier_gre_keys.sh4 # Test IP-in-IP GRE tunnels without key.
29 sw1_hierarchical_create gre $ol1 $ul1 ikey 111 okey 222
30 sw2_hierarchical_create gre $ol2 $ul2 ikey 222 okey 111
37 ping_test $h1 192.0.2.18 " gre hierarchical with ikey/okey"
42 test_mtu_change gre
Dgre_multipath.sh4 # Test traffic distribution when a wECMP route forwards traffic to two GRE
18 # | + g1a (gre) + g1b (gre) |
43 # | + g2a (gre) | + g2b (gre) | |
85 tunnel_create g1a gre 192.0.2.65 192.0.2.66 tos inherit dev v$ol1
89 tunnel_create g1b gre 192.0.2.81 192.0.2.82 tos inherit dev v$ol1
123 tunnel_create g2a gre 192.0.2.66 192.0.2.65 tos inherit dev v$ol2
127 tunnel_create g2b gre 192.0.2.82 192.0.2.81 tos inherit dev v$ol2
Dgre_multipath_nh.sh4 # Test traffic distribution when a wECMP route forwards traffic to two GRE
20 # | + g1a (gre) + g1b (gre) |
45 # | + g2a (gre) | + g2b (gre) | |
94 tunnel_create g1a gre 192.0.2.65 192.0.2.66 tos inherit dev v$ol1
98 tunnel_create g1b gre 192.0.2.81 192.0.2.82 tos inherit dev v$ol1
140 tunnel_create g2a gre 192.0.2.66 192.0.2.65 tos inherit dev v$ol2
144 tunnel_create g2b gre 192.0.2.82 192.0.2.81 tos inherit dev v$ol2
Dgre_multipath_nh_res.sh4 # Test traffic distribution when a wECMP route forwards traffic to two GRE
20 # | + g1a (gre) + g1b (gre) |
45 # | + g2a (gre) | + g2b (gre) | |
94 tunnel_create g1a gre 192.0.2.65 192.0.2.66 tos inherit dev v$ol1
98 tunnel_create g1b gre 192.0.2.81 192.0.2.82 tos inherit dev v$ol1
141 tunnel_create g2a gre 192.0.2.66 192.0.2.65 tos inherit dev v$ol2
145 tunnel_create g2b gre 192.0.2.82 192.0.2.81 tos inherit dev v$ol2
Dgre_inner_v4_multipath.sh5 # GRE tunnel. The tunnel carries IPv4 traffic between multiple hosts.
21 # | + g1 (gre) |
59 # | + g2 (gre) | |
99 tunnel_create g1 gre 192.0.2.65 192.0.2.66 tos inherit dev v$ol1
179 tunnel_create g2 gre 192.0.2.66 192.0.2.65 tos inherit dev v$ol4
293 log_info "Running IPv4 over GRE over IPv4 multipath tests"
Dgre_inner_v6_multipath.sh5 # GRE tunnel. The tunnel carries IPv6 traffic between multiple hosts.
21 # | + g1 (gre) |
59 # | + g2 (gre) | |
99 tunnel_create g1 gre 192.0.2.65 192.0.2.66 tos inherit dev v$ol1
179 tunnel_create g2 gre 192.0.2.66 192.0.2.65 tos inherit dev v$ol4
294 log_info "Running IPv6 over GRE over IPv4 multipath tests"
/Linux-v5.15/tools/testing/selftests/bpf/progs/
Dbpf_flow.c156 struct gre_hdr *gre, _gre; in parse_ip_proto() local
180 gre = bpf_flow_dissect_get_header(skb, sizeof(*gre), &_gre); in parse_ip_proto()
181 if (!gre) in parse_ip_proto()
184 if (bpf_htons(gre->flags & GRE_VERSION)) in parse_ip_proto()
185 /* Only inspect standard GRE packets with version 0 */ in parse_ip_proto()
188 keys->thoff += sizeof(*gre); /* Step over GRE Flags and Proto */ in parse_ip_proto()
189 if (GRE_IS_CSUM(gre->flags)) in parse_ip_proto()
191 if (GRE_IS_KEY(gre->flags)) in parse_ip_proto()
193 if (GRE_IS_SEQ(gre->flags)) in parse_ip_proto()
200 if (gre->proto == bpf_htons(ETH_P_TEB)) { in parse_ip_proto()
[all …]
/Linux-v5.15/net/ipv4/netfilter/
Dnf_nat_pptp.c10 * GRE is defined in RFC 1701 and RFC 1702. Documentation of
68 t.src.u.gre.key = ct_pptp_info->pac_call_id; in pptp_nat_expected()
70 t.dst.u.gre.key = ct_pptp_info->pns_call_id; in pptp_nat_expected()
77 t.src.u.gre.key = nat_pptp_info->pns_call_id; in pptp_nat_expected()
79 t.dst.u.gre.key = nat_pptp_info->pac_call_id; in pptp_nat_expected()
217 expect_orig->saved_proto.gre.key = ct_pptp_info->pns_call_id; in pptp_exp_gre()
218 expect_orig->tuple.src.u.gre.key = nat_pptp_info->pns_call_id; in pptp_exp_gre()
219 expect_orig->tuple.dst.u.gre.key = ct_pptp_info->pac_call_id; in pptp_exp_gre()
223 expect_reply->saved_proto.gre.key = nat_pptp_info->pns_call_id; in pptp_exp_gre()
224 expect_reply->tuple.src.u.gre.key = nat_pptp_info->pac_call_id; in pptp_exp_gre()
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_gre.c4 #include <net/gre.h>
38 /* the HW does not calculate GRE csum or sequences */ in mlx5e_gen_ip_tunnel_header_gretap()
44 /* GRE key */ in mlx5e_gen_ip_tunnel_header_gretap()
68 /* gre protocol */ in mlx5e_tc_tun_parse_gretap()
72 /* gre key */ in mlx5e_tc_tun_parse_gretap()
/Linux-v5.15/net/ipv4/
Dgre_demux.c3 * GRE over IPv4 demultiplexer driver
22 #include <net/gre.h>
60 * Note that caller must use pskb_may_pull() before pulling GRE header.
112 * - When dealing with WCCPv2, Skip extra 4 bytes in GRE header in gre_parse_header()
127 /* ERSPAN ver 1 and 2 protocol sets GRE key field in gre_parse_header()
202 pr_info("GRE over IPv4 demultiplexor driver\n"); in gre_init()
219 MODULE_DESCRIPTION("GRE over IPv4 demultiplexer driver");
/Linux-v5.15/tools/testing/selftests/bpf/
Dtest_flow_dissector.sh129 echo "Testing IPv4 + GRE..."
130 # Send 10 IPv4/GRE/IPv4/UDP packets from port 8. Filter should not drop any.
131 ./with_addr.sh ./with_tunnels.sh ./test_flow_dissector -o 4 -e gre -i 4 \
133 # Send 10 IPv4/GRE/IPv4/UDP packets from port 9. Filter should drop all.
134 ./with_addr.sh ./with_tunnels.sh ./test_flow_dissector -o 4 -e gre -i 4 \
136 # Send 10 IPv4/GRE/IPv4/UDP packets from port 10. Filter should not drop any.
137 ./with_addr.sh ./with_tunnels.sh ./test_flow_dissector -o 4 -e gre -i 4 \
Dtest_tc_tunnel.sh115 echo "ip gre $mac"
116 $0 ipv4 gre $mac 100
118 echo "ip6 gre $mac"
121 echo "ip gre $mac gso"
122 $0 ipv4 gre $mac 2000
124 echo "ip6 gre $mac gso"
221 elif [[ "$tuntype" =~ "gre" && "$mac" == "eth" ]]; then
254 elif [[ "$tuntype" =~ (gre|vxlan) && "$mac" == "eth" ]]; then
Dtest_lwt_ip_encap.sh20 # a GRE device is installed in NS3 with IPv*_GRE, and
30 # that encaps the packets with an IP/GRE header to route to IPv*_GRE
32 # ping: SRC->[encap at veth1:egress]->GRE:decap->DST
36 # that encaps the packets with an IP/GRE header to route to IPv*_GRE
38 # ping: SRC->[encap at veth2:ingress]->GRE:decap->DST
232 # configure IPv4 GRE device in NS3, and a route to it via the "bottom" route
233 ip -netns ${NS3} tunnel add gre_dev mode gre remote ${IPv4_1} local ${IPv4_GRE} ttl 255
240 # configure IPv6 GRE device in NS3, and a route to it via the "bottom" route
390 # a negative test: remove routes to GRE devices: ping fails
441 # a negative test: remove routes to GRE devices: ping fails
/Linux-v5.15/drivers/net/ethernet/intel/iavf/
Diavf_common.c598 /* IPv4 --> GRE/NAT */
601 /* IPv4 --> GRE/NAT --> IPv4 */
610 /* IPv4 --> GRE/NAT --> IPv6 */
619 /* IPv4 --> GRE/NAT --> MAC */
622 /* IPv4 --> GRE/NAT --> MAC --> IPv4 */
631 /* IPv4 --> GRE/NAT -> MAC --> IPv6 */
640 /* IPv4 --> GRE/NAT --> MAC/VLAN */
643 /* IPv4 ---> GRE/NAT -> MAC/VLAN --> IPv4 */
652 /* IPv4 -> GRE/NAT -> MAC/VLAN --> IPv6 */
688 /* IPv6 --> GRE/NAT */
[all …]
/Linux-v5.15/drivers/net/ethernet/intel/ice/
Dice_lan_tx_rx.h703 /* IPv4 --> GRE/NAT */
706 /* IPv4 --> GRE/NAT --> IPv4 */
715 /* IPv4 --> GRE/NAT --> IPv6 */
724 /* IPv4 --> GRE/NAT --> MAC */
727 /* IPv4 --> GRE/NAT --> MAC --> IPv4 */
736 /* IPv4 --> GRE/NAT -> MAC --> IPv6 */
745 /* IPv4 --> GRE/NAT --> MAC/VLAN */
748 /* IPv4 ---> GRE/NAT -> MAC/VLAN --> IPv4 */
757 /* IPv4 -> GRE/NAT -> MAC/VLAN --> IPv6 */
793 /* IPv6 --> GRE/NAT */
[all …]
/Linux-v5.15/tools/testing/selftests/drivers/net/mlxsw/
Ddevlink_trap_tunnel_ipip.sh19 # | + g1a (gre) |
71 tunnel_create g1 gre 192.0.2.65 192.0.2.66 tos inherit
122 )"0"$( : GRE flags
180 )"$flags"$( : GRE flags
248 tunnel_create g1 gre 192.0.2.65 192.0.2.66 tos inherit key 233
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dport_tun.c94 * for all tunneling protocols or specifically for GRE protocol. in mlx5_set_entropy()
95 * Prioritize GRE protocol control (if capable) over global port in mlx5_set_entropy()
118 /* GRE requires disabling entropy calculation. if there are in mlx5_set_entropy()
160 /* turn off the entropy only for the first GRE rule. in mlx5_tun_entropy_refcount_inc()

123456