Home
last modified time | relevance | path

Searched refs:encap (Results 1 – 25 of 87) sorted by relevance

1234

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect.c377 static INLINING ret_t accept_locally(struct __sk_buff *skb, encap_headers_t *encap) in accept_locally() argument
380 sizeof(*encap) + in accept_locally()
381 sizeof(struct in_addr) * encap->unigue.hop_count; in accept_locally()
385 if (encap->gue.proto_ctype == IPPROTO_IPV6) { in accept_locally()
386 encap->eth.h_proto = bpf_htons(ETH_P_IPV6); in accept_locally()
398 static INLINING ret_t forward_with_gre(struct __sk_buff *skb, encap_headers_t *encap, in forward_with_gre() argument
404 sizeof(*encap) + in forward_with_gre()
405 sizeof(struct in_addr) * encap->unigue.hop_count; in forward_with_gre()
417 if (encap->gue.proto_ctype == IPPROTO_IPV6) { in forward_with_gre()
519 static INLINING ret_t forward_to_next_hop(struct __sk_buff *skb, encap_headers_t *encap, in forward_to_next_hop() argument
[all …]
/kernel/linux/linux-5.10/net/bridge/netfilter/
Debt_vlan.c34 __be16 encap; in ebt_vlan_mt() local
38 encap = skb->protocol; in ebt_vlan_mt()
48 encap = fp->h_vlan_encapsulated_proto; in ebt_vlan_mt()
72 EXIT_ON_MISMATCH(encap, EBT_VLAN_ENCAP); in ebt_vlan_mt()
141 if ((unsigned short) ntohs(info->encap) < ETH_ZLEN) { in ebt_vlan_mt_check()
143 "minimal\n", ntohs(info->encap)); in ebt_vlan_mt_check()
/kernel/linux/linux-5.10/net/ipv6/
Desp6.c154 struct xfrm_encap_tmpl *encap = x->encap; in esp6_find_tcp_sk() local
165 sport = encap->encap_sport; in esp6_find_tcp_sk()
166 dport = encap->encap_dport; in esp6_find_tcp_sk()
194 if (encap->encap_sport != sport || in esp6_find_tcp_sk()
195 encap->encap_dport != dport) { in esp6_find_tcp_sk()
314 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done()
448 struct xfrm_encap_tmpl *encap = x->encap; in esp6_output_encap() local
454 sport = encap->encap_sport; in esp6_output_encap()
455 dport = encap->encap_dport; in esp6_output_encap()
456 encap_type = encap->encap_type; in esp6_output_encap()
[all …]
Dip6_offload.c84 bool encap, udpfrag; in ipv6_gso_segment() local
93 encap = SKB_GSO_CB(skb)->encap_level > 0; in ipv6_gso_segment()
94 if (encap) in ipv6_gso_segment()
106 udpfrag = proto == IPPROTO_UDP && encap && in ipv6_gso_segment()
150 if (encap) in ipv6_gso_segment()
/kernel/linux/linux-5.10/net/ipv4/
Desp4.c138 struct xfrm_encap_tmpl *encap = x->encap; in esp_find_tcp_sk() local
149 sport = encap->encap_sport; in esp_find_tcp_sk()
150 dport = encap->encap_dport; in esp_find_tcp_sk()
178 if (encap->encap_sport != sport || in esp_find_tcp_sk()
179 encap->encap_dport != dport) { in esp_find_tcp_sk()
279 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done()
413 struct xfrm_encap_tmpl *encap = x->encap; in esp_output_encap() local
419 sport = encap->encap_sport; in esp_output_encap()
420 dport = encap->encap_dport; in esp_output_encap()
421 encap_type = encap->encap_type; in esp_output_encap()
[all …]
/kernel/linux/linux-5.10/include/net/
Dip6_tunnel.h64 struct ip_tunnel_encap encap; member
114 if (t->encap.type == TUNNEL_ENCAP_NONE) in ip6_tnl_encap()
117 if (t->encap.type >= MAX_IPTUN_ENCAP_OPS) in ip6_tnl_encap()
121 ops = rcu_dereference(ip6tun_encaps[t->encap.type]); in ip6_tnl_encap()
123 ret = ops->build_header(skb, &t->encap, protocol, fl6); in ip6_tnl_encap()
Dlwtunnel.h37 int (*build_state)(struct net *net, struct nlattr *encap,
117 struct nlattr *encap,
213 struct nlattr *encap, in lwtunnel_build_state() argument
Dip_tunnels.h132 struct ip_tunnel_encap encap; member
362 if (t->encap.type == TUNNEL_ENCAP_NONE) in ip_tunnel_encap()
365 if (t->encap.type >= MAX_IPTUN_ENCAP_OPS) in ip_tunnel_encap()
369 ops = rcu_dereference(iptun_encaps[t->encap.type]); in ip_tunnel_encap()
371 ret = ops->build_header(skb, &t->encap, protocol, fl4); in ip_tunnel_encap()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dpmtu.sh365 encap="${3}"
394 …cmd ${ns_a} ip link add ${encap}_a type ${type} ${mode} local ${a_addr} remote ${b_addr} encap ${e…
397 …cmd ${ns_b} ip link add ${encap}_b type ${type} ${mode} local ${b_addr} remote ${a_addr} encap ${e…
400 run_cmd ${ns_a} ip addr add ${tunnel4_a_addr}/${tunnel4_mask} dev ${encap}_a
401 run_cmd ${ns_b} ip addr add ${tunnel4_b_addr}/${tunnel4_mask} dev ${encap}_b
403 run_cmd ${ns_a} ip addr add ${tunnel6_a_addr}/${tunnel6_mask} dev ${encap}_a
404 run_cmd ${ns_b} ip addr add ${tunnel6_b_addr}/${tunnel6_mask} dev ${encap}_b
407 run_cmd ${ns_a} ip link set ${encap}_a up
408 run_cmd ${ns_b} ip link set ${encap}_b up
1239 encap=${3}
[all …]
/kernel/linux/linux-5.10/net/l2tp/
Dl2tp_core.c371 (session_walk->tunnel->encap == L2TP_ENCAPTYPE_IP || in l2tp_session_register()
372 tunnel->encap == L2TP_ENCAPTYPE_IP)) { in l2tp_session_register()
964 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { in l2tp_build_l2tpv3_header()
1026 uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(*uh) : 0; in l2tp_xmit_core()
1066 switch (tunnel->encap) { in l2tp_xmit_core()
1139 switch (tunnel->encap) { in l2tp_tunnel_destruct()
1286 switch (cfg->encap) { in l2tp_tunnel_sock_create()
1395 enum l2tp_encap_type encap = L2TP_ENCAPTYPE_UDP; in l2tp_tunnel_create() local
1398 encap = cfg->encap; in l2tp_tunnel_create()
1415 tunnel->encap = encap; in l2tp_tunnel_create()
[all …]
Dtrace.h60 __field(enum l2tp_encap_type, encap)
68 __entry->encap = tunnel->encap;
73 show_encap_type_name(__entry->encap),
Dl2tp_netlink.c218 cfg.encap = nla_get_u16(attrs[L2TP_ATTR_ENCAP_TYPE]); in l2tp_nl_cmd_tunnel_create()
233 switch (cfg.encap) { in l2tp_nl_cmd_tunnel_create()
318 enum l2tp_encap_type encap) in l2tp_nl_tunnel_send_addr6() argument
323 switch (encap) { in l2tp_nl_tunnel_send_addr6()
346 enum l2tp_encap_type encap) in l2tp_nl_tunnel_send_addr4() argument
350 switch (encap) { in l2tp_nl_tunnel_send_addr4()
379 return l2tp_nl_tunnel_send_addr6(skb, sk, tunnel->encap); in l2tp_nl_tunnel_send_addr()
381 return l2tp_nl_tunnel_send_addr4(skb, sk, tunnel->encap); in l2tp_nl_tunnel_send_addr()
398 nla_put_u16(skb, L2TP_ATTR_ENCAP_TYPE, tunnel->encap)) in l2tp_nl_tunnel_send()
Dl2tp_debugfs.c158 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) in l2tp_dfs_seq_tunnel_show()
163 tunnel->encap == L2TP_ENCAPTYPE_UDP ? "UDP" : in l2tp_dfs_seq_tunnel_show()
164 tunnel->encap == L2TP_ENCAPTYPE_IP ? "IP" : in l2tp_dfs_seq_tunnel_show()
/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_state.c412 .encap = XFRM_MODE_BEET,
417 .encap = XFRM_MODE_TRANSPORT,
421 .encap = XFRM_MODE_TUNNEL,
429 .encap = XFRM_MODE_BEET,
434 .encap = XFRM_MODE_ROUTEOPTIMIZATION,
438 .encap = XFRM_MODE_TRANSPORT,
442 .encap = XFRM_MODE_TUNNEL,
448 static const struct xfrm_mode *xfrm_get_mode(unsigned int encap, int family) in xfrm_get_mode() argument
452 if (unlikely(encap >= XFRM_MODE_MAX)) in xfrm_get_mode()
457 mode = &xfrm4_mode_map[encap]; in xfrm_get_mode()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dcls_redirect.c248 static void encap_init(encap_headers_t *encap, uint8_t hop_count, uint8_t proto) in encap_init() argument
252 *encap = (encap_headers_t){ in encap_init()
278 encap_headers_t encap; in build_input() local
291 encap_init(&encap, test->hops == ONE_HOP ? 1 : 0, proto); in build_input()
292 p = mempcpy(p, &encap, sizeof(encap)); in build_input()
/kernel/linux/linux-5.10/drivers/infiniband/core/
Duverbs_std_types_flow_action.c223 struct ib_flow_spec_list encap; member
298 ret = flow_action_esp_get_encap(&esp_attr->encap, attrs); in parse_flow_action_esp()
302 esp_attr->hdr.encap = &esp_attr->encap; in parse_flow_action_esp()
/kernel/linux/linux-5.10/net/core/
Dlwtunnel.c104 struct nlattr *encap, unsigned int family, in lwtunnel_build_state() argument
114 NL_SET_ERR_MSG_ATTR(extack, encap, in lwtunnel_build_state()
127 ret = ops->build_state(net, encap, family, cfg, lws, extack); in lwtunnel_build_state()
134 NL_SET_ERR_MSG_ATTR(extack, encap, in lwtunnel_build_state()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_lwt_ip_encap.sh375 ip -netns ${NS1} route add ${IPv4_DST} encap bpf xmit obj \
377 ip -netns ${NS1} -6 route add ${IPv6_DST} encap bpf xmit obj \
380 ip -netns ${NS1} route add ${IPv4_DST} encap bpf xmit obj \
382 ip -netns ${NS1} -6 route add ${IPv6_DST} encap bpf xmit obj \
433 ip -netns ${NS2} route add ${IPv4_DST} encap bpf in obj \
435 ip -netns ${NS2} -6 route add ${IPv6_DST} encap bpf in obj \
438 ip -netns ${NS2} route add ${IPv4_DST} encap bpf in obj \
440 ip -netns ${NS2} -6 route add ${IPv6_DST} encap bpf in obj \
Dtest_lwt_seg6local.sh114 ip netns exec ns2 ip -6 route add fb00::6 encap bpf in obj test_lwt_seg6local.o sec encap_srh dev v…
118 ip netns exec ns3 ip -6 route add fd00::1 encap seg6local action End.BPF endpoint obj test_lwt_seg6…
120 ip netns exec ns4 ip -6 route add fd00::2 encap seg6local action End.BPF endpoint obj test_lwt_seg6…
125 ip netns exec ns5 ip -6 route add fd00::3 encap seg6local action End.BPF endpoint obj test_lwt_seg6…
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
Dipip_lib.sh336 local encap=$1; shift
341 check_fail $? "ping $encap should not pass with size 1800"
348 log_test "ping $encap packet size 1800 after MTU change"
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_rxtx.c274 struct xfrm_encap_tmpl *encap; in mlx5e_ipsec_tx_build_eseg() local
301 encap = x->encap; in mlx5e_ipsec_tx_build_eseg()
302 if (!encap) { in mlx5e_ipsec_tx_build_eseg()
306 } else if (encap->encap_type == UDP_ENCAP_ESPINUDP) { in mlx5e_ipsec_tx_build_eseg()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch_offloads.c1182 esw->offloads.encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE) { in esw_init_chains_offload_flags()
1200 if (esw->offloads.encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE) in esw_init_chains_offload_flags()
1330 if (esw->offloads.encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE) in esw_create_offloads_fdb_tables()
2315 esw->offloads.encap = DEVLINK_ESWITCH_ENCAP_MODE_BASIC; in esw_offloads_enable()
2317 esw->offloads.encap = DEVLINK_ESWITCH_ENCAP_MODE_NONE; in esw_offloads_enable()
2405 esw->offloads.encap = DEVLINK_ESWITCH_ENCAP_MODE_NONE; in esw_offloads_disable()
2633 enum devlink_eswitch_encap_mode encap, in mlx5_devlink_eswitch_encap_mode_set() argument
2649 if (encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE && in mlx5_devlink_eswitch_encap_mode_set()
2656 if (encap && encap != DEVLINK_ESWITCH_ENCAP_MODE_BASIC) { in mlx5_devlink_eswitch_encap_mode_set()
2662 esw->offloads.encap = encap; in mlx5_devlink_eswitch_encap_mode_set()
[all …]
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/netfilter_bridge/
Debt_vlan.h17 __be16 encap; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/netfilter_bridge/
Debt_vlan.h30 __be16 encap; member
/kernel/linux/linux-5.10/include/uapi/linux/netfilter_bridge/
Debt_vlan.h16 __be16 encap; /* VLAN Encapsulated frame code {0-65535} */ member

1234