Home
last modified time | relevance | path

Searched refs:IPPROTO_GRE (Results 1 – 25 of 59) sorted by relevance

123

/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c177 case IPPROTO_GRE: in __encap_ipv4()
308 case IPPROTO_GRE: in __encap_ipv6()
447 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_IP); in __encap_gre_none()
456 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_MPLS_UC); in __encap_gre_mpls()
465 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_TEB); in __encap_gre_eth()
539 return encap_ipv6(skb, IPPROTO_GRE, ETH_P_IPV6); in __encap_ip6gre_none()
548 return encap_ipv6(skb, IPPROTO_GRE, ETH_P_MPLS_UC); in __encap_ip6gre_mpls()
557 return encap_ipv6(skb, IPPROTO_GRE, ETH_P_TEB); in __encap_ip6gre_eth()
630 case IPPROTO_GRE: in decap_internal()
/linux-6.15/arch/um/drivers/
H A Dvector_user.h33 #ifndef IPPROTO_GRE
34 #define IPPROTO_GRE 0x2F macro
/linux-6.15/net/ipv4/
H A Dgre_offload.c188 skb_gro_checksum_try_convert(skb, IPPROTO_GRE, in gre_gro_receive()
275 err = inet_add_offload(&gre_offload, IPPROTO_GRE); in gre_offload_init()
280 err = inet6_add_offload(&gre_offload, IPPROTO_GRE); in gre_offload_init()
282 inet_del_offload(&gre_offload, IPPROTO_GRE); in gre_offload_init()
H A Dgre_demux.c88 skb_checksum_try_convert(skb, IPPROTO_GRE, in gre_parse_header()
204 if (inet_add_protocol(&net_gre_protocol, IPPROTO_GRE) < 0) { in gre_init()
213 inet_del_protocol(&net_gre_protocol, IPPROTO_GRE); in gre_exit()
H A Dip_gre.c246 skb->dev->ifindex, IPPROTO_GRE); in gre_err()
251 IPPROTO_GRE); in gre_err()
531 ip_md_tunnel_xmit(skb, dev, IPPROTO_GRE, tunnel_hlen); in gre_fb_xmit()
616 ip_md_tunnel_xmit(skb, dev, IPPROTO_GRE, tunnel_hlen); in erspan_fb_xmit()
636 ip_tunnel_init_flow(&fl4, IPPROTO_GRE, key->u.ipv4.dst, key->u.ipv4.src, in gre_fill_metadata_dst()
829 if (p->iph.version != 4 || p->iph.protocol != IPPROTO_GRE || in ipgre_tunnel_ctl()
935 .flowi4_proto = IPPROTO_GRE, in ipgre_open()
1002 tunnel->parms.iph.protocol = IPPROTO_GRE; in __gre_tunnel_init()
1182 parms->iph.protocol = IPPROTO_GRE; in ipgre_netlink_parms()
1349 tunnel->parms.iph.protocol = IPPROTO_GRE; in erspan_tunnel_init()
/linux-6.15/tools/include/uapi/linux/
H A Din.h56 IPPROTO_GRE = 47, /* Cisco GRE tunnels (rfc 1701,1702) */ enumerator
57 #define IPPROTO_GRE IPPROTO_GRE macro
/linux-6.15/include/uapi/linux/
H A Din.h56 IPPROTO_GRE = 47, /* Cisco GRE tunnels (rfc 1701,1702) */ enumerator
57 #define IPPROTO_GRE IPPROTO_GRE macro
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_gre.c37 *ip_proto = IPPROTO_GRE; in mlx5e_gen_ip_tunnel_header_gretap()
70 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, IPPROTO_GRE); in mlx5e_tc_tun_parse_gretap()
/linux-6.15/include/net/netfilter/
H A Dnf_reject.h28 case IPPROTO_GRE: in nf_reject_verify_csum()
/linux-6.15/tools/testing/selftests/net/
H A Dnat6to4.bpf.c82 case IPPROTO_GRE: // We do not need to bother looking at GRE/ESP headers, in sched_cls_ingress6_nat_6_prog()
205 case IPPROTO_GRE: // address means there is no need to update their checksums. in sched_cls_egress4_snat4_prog()
/linux-6.15/samples/bpf/
H A Dsockex2_kern.c72 if (*ip_proto != IPPROTO_GRE) { in parse_ip()
128 case IPPROTO_GRE: { in flow_dissector()
H A Dsockex3_kern.c113 case IPPROTO_GRE: { in parse_ip_proto()
173 if (ip_proto != IPPROTO_GRE) { in bpf_func_ip()
/linux-6.15/net/netfilter/
H A Dnf_conntrack_pptp.c171 t.dst.protonum = IPPROTO_GRE; in pptp_destroy_siblings()
179 t.dst.protonum = IPPROTO_GRE; in pptp_destroy_siblings()
208 IPPROTO_GRE, &peer_callid, &callid); in exp_gre()
217 IPPROTO_GRE, &callid, &peer_callid); in exp_gre()
H A Dnf_flow_table_ip.c206 case IPPROTO_GRE: in nf_flow_tuple_ip()
227 case IPPROTO_GRE: { in nf_flow_tuple_ip()
606 case IPPROTO_GRE: in nf_flow_tuple_ipv6()
627 case IPPROTO_GRE: { in nf_flow_tuple_ipv6()
H A Dnf_conntrack_proto_gre.c306 .l4proto = IPPROTO_GRE,
H A Dnft_inner.c177 if (pkt->tprot == IPPROTO_GRE) { in nft_inner_parse_tunhdr()
/linux-6.15/net/ipv4/netfilter/
H A Dnf_nat_pptp.c71 t.dst.protonum = IPPROTO_GRE; in pptp_nat_expected()
80 t.dst.protonum = IPPROTO_GRE; in pptp_nat_expected()
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector_classification.c220 if (test->cfg_encap_proto == IPPROTO_GRE) in build_packet()
295 case IPPROTO_GRE: in build_packet()
705 .cfg_encap_proto = IPPROTO_GRE,
H A Dflow_dissector.c440 .iph.protocol = IPPROTO_GRE,
473 .iph.protocol = IPPROTO_GRE,
490 .ip_proto = IPPROTO_GRE,
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_ttc.c138 .proto = IPPROTO_GRE,
142 .proto = IPPROTO_GRE,
219 case IPPROTO_GRE: in mlx5_tunnel_proto_supported_rx()
/linux-6.15/net/sched/
H A Dact_ct.c483 case IPPROTO_GRE: { in tcf_ct_flow_table_process_conn()
540 case IPPROTO_GRE: in tcf_ct_flow_table_fill_tuple_ipv4()
563 case IPPROTO_GRE: { in tcf_ct_flow_table_fill_tuple_ipv4()
609 case IPPROTO_GRE: in tcf_ct_flow_table_fill_tuple_ipv6()
632 case IPPROTO_GRE: { in tcf_ct_flow_table_fill_tuple_ipv6()
/linux-6.15/net/ipv6/
H A Dip6_gre.c779 fl6->flowi6_proto = IPPROTO_GRE; in __gre6_xmit()
1014 fl6.flowi6_proto = IPPROTO_GRE; in ip6erspan_tunnel_xmit()
1131 fl6->flowi6_proto = IPPROTO_GRE; in ip6gre_tnl_link_config_common()
1266 u->proto = IPPROTO_GRE; in ip6gre_tnl_parm_to_user()
2369 err = inet6_add_protocol(&ip6gre_protocol, IPPROTO_GRE); in ip6gre_init()
2395 inet6_del_protocol(&ip6gre_protocol, IPPROTO_GRE); in ip6gre_init()
2406 inet6_del_protocol(&ip6gre_protocol, IPPROTO_GRE); in ip6gre_fini()
/linux-6.15/drivers/net/ppp/
H A Dpptp.c140 RT_SCOPE_UNIVERSE, IPPROTO_GRE, 0, in pptp_route_output()
245 iph->protocol = IPPROTO_GRE; in pptp_xmit()
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dct_fs_hmfs.c213 outer_headers.ip_protocol) == IPPROTO_GRE; in mlx5_ct_fs_hmfs_ct_rule_add()
H A Dct_fs_smfs.c256 outer_headers.ip_protocol) == IPPROTO_GRE; in mlx5_ct_fs_smfs_ct_rule_add()

123