/Linux-v4.19/net/core/ |
D | lwtunnel.c | 33 static const char *lwtunnel_encap_str(enum lwtunnel_encap_types encap_type) in lwtunnel_encap_str() argument 38 switch (encap_type) { in lwtunnel_encap_str() 88 unsigned int encap_type) in lwtunnel_encap_del_ops() argument 92 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_encap_del_ops() 93 encap_type > LWTUNNEL_ENCAP_MAX) in lwtunnel_encap_del_ops() 97 &lwtun_encaps[encap_type], in lwtunnel_encap_del_ops() 106 int lwtunnel_build_state(u16 encap_type, in lwtunnel_build_state() argument 115 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_build_state() 116 encap_type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_build_state() 124 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state() [all …]
|
/Linux-v4.19/net/ipv4/ |
D | xfrm4_input.c | 96 __u16 encap_type = up->encap_type; in xfrm4_udp_encap_rcv() local 99 if (!encap_type) in xfrm4_udp_encap_rcv() 113 switch (encap_type) { in xfrm4_udp_encap_rcv() 166 return xfrm4_rcv_encap(skb, IPPROTO_ESP, 0, encap_type); in xfrm4_udp_encap_rcv()
|
D | udp_tunnel.c | 69 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
|
D | xfrm4_protocol.c | 67 int encap_type) in xfrm4_rcv_encap() argument 81 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm4_rcv_encap()
|
D | esp4.c | 228 int encap_type; in esp_output_udp_encap() local 238 encap_type = encap->encap_type; in esp_output_udp_encap() 248 switch (encap_type) { in esp_output_udp_encap() 992 switch (encap->encap_type) { in esp_init_state()
|
D | ip_vti.c | 53 int encap_type) in vti_input() argument 68 return xfrm_input(skb, nexthdr, spi, encap_type); in vti_input()
|
D | fib_semantics.c | 610 static int fib_encap_match(u16 encap_type, in fib_encap_match() argument 619 if (encap_type == LWTUNNEL_ENCAP_NONE) in fib_encap_match() 622 ret = lwtunnel_build_state(encap_type, encap, AF_INET, in fib_encap_match()
|
D | udp.c | 1919 if (static_branch_unlikely(&udp_encap_needed_key) && up->encap_type) { in udp_queue_rcv_skb() 2385 if (static_branch_unlikely(&udp_encap_needed_key) && up->encap_type) { in udp_destroy_sock() 2433 up->encap_type = val; in udp_lib_setsockopt() 2535 val = up->encap_type; in udp_lib_getsockopt()
|
D | fou.c | 561 tunnel_cfg.encap_type = 1; in fou_create()
|
/Linux-v4.19/include/net/ |
D | lwtunnel.h | 112 int lwtunnel_valid_encap_type(u16 encap_type, 116 int lwtunnel_build_state(u16 encap_type, 195 static inline int lwtunnel_valid_encap_type(u16 encap_type, in lwtunnel_valid_encap_type() argument 210 static inline int lwtunnel_build_state(u16 encap_type, in lwtunnel_build_state() argument 258 #define MODULE_ALIAS_RTNL_LWT(encap_type) MODULE_ALIAS("rtnl-lwt-" __stringify(encap_type)) argument
|
D | udp_tunnel.h | 77 __u8 encap_type; member
|
D | xfrm.h | 1476 int encap_type); 1628 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type); 1640 int encap_type);
|
/Linux-v4.19/drivers/net/ethernet/sfc/ |
D | filter.h | 173 u32 encap_type:4; member 299 enum efx_encap_type encap_type) in efx_filter_set_encap_type() argument 302 spec->encap_type = encap_type; in efx_filter_set_encap_type() 309 return spec->encap_type; in efx_filter_get_encap_type()
|
D | ef10.c | 4056 enum efx_encap_type encap_type = efx_filter_get_encap_type(spec); in efx_ef10_filter_push_prep_set_match_fields() local 4086 if (encap_type) { in efx_ef10_filter_push_prep_set_match_fields() 4091 htons(encap_type & EFX_ENCAP_FLAG_IPV6 ? in efx_ef10_filter_push_prep_set_match_fields() 4096 switch (encap_type & EFX_ENCAP_TYPES_MASK) { in efx_ef10_filter_push_prep_set_match_fields() 4218 enum efx_encap_type encap_type = efx_filter_get_encap_type(spec); in efx_ef10_filter_mcdi_flags_from_spec() local 4235 MAP_FILTER_TO_MCDI_FLAG(REM_HOST, SRC_IP, encap_type); in efx_ef10_filter_mcdi_flags_from_spec() 4236 MAP_FILTER_TO_MCDI_FLAG(LOC_HOST, DST_IP, encap_type); in efx_ef10_filter_mcdi_flags_from_spec() 4237 MAP_FILTER_TO_MCDI_FLAG(REM_MAC, SRC_MAC, encap_type); in efx_ef10_filter_mcdi_flags_from_spec() 4238 MAP_FILTER_TO_MCDI_FLAG(REM_PORT, SRC_PORT, encap_type); in efx_ef10_filter_mcdi_flags_from_spec() 4239 MAP_FILTER_TO_MCDI_FLAG(LOC_MAC, DST_MAC, encap_type); in efx_ef10_filter_mcdi_flags_from_spec() [all …]
|
/Linux-v4.19/net/xfrm/ |
D | xfrm_input.c | 223 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument 240 if (encap_type < 0) { in xfrm_input() 255 if (encap_type == -1) { in xfrm_input() 262 encap_type = 0; in xfrm_input() 361 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { in xfrm_input() 413 encap_type = 0; in xfrm_input()
|
D | xfrm_state.c | 1547 x->encap->encap_type == x1->encap->encap_type) in xfrm_state_update()
|
/Linux-v4.19/include/linux/ |
D | udp.h | 50 __u8 encap_type; /* Is this an Encapsulation socket? */ member
|
/Linux-v4.19/include/uapi/linux/ |
D | xfrm.h | 250 __u16 encap_type; member
|
/Linux-v4.19/drivers/net/ |
D | gtp.c | 298 udp_sk(sk)->encap_type = 0; in gtp_encap_destroy() 332 switch (udp_sk(sk)->encap_type) { in gtp_encap_recv() 812 tuncfg.encap_type = type; in gtp_encap_enable_socket()
|
/Linux-v4.19/net/rxrpc/ |
D | local_object.c | 135 udp_sk(usk)->encap_type = UDP_ENCAP_RXRPC; in rxrpc_open_socket()
|
/Linux-v4.19/net/l2tp/ |
D | l2tp_core.c | 1161 (udp_sk(sk))->encap_type = 0; in l2tp_tunnel_destruct() 1516 .encap_type = UDP_ENCAP_L2TPINUDP, in l2tp_tunnel_register()
|
/Linux-v4.19/drivers/infiniband/sw/rxe/ |
D | rxe_net.c | 296 tnl_cfg.encap_type = 1; in rxe_setup_udp_tunnel()
|
/Linux-v4.19/net/tipc/ |
D | udp_media.c | 734 tuncfg.encap_type = 1; in tipc_udp_enable()
|
/Linux-v4.19/net/ipv6/ |
D | udp.c | 566 if (static_branch_unlikely(&udpv6_encap_needed_key) && up->encap_type) { in udpv6_queue_rcv_skb() 1461 if (static_branch_unlikely(&udpv6_encap_needed_key) && up->encap_type) { in udpv6_destroy_sock()
|
/Linux-v4.19/net/key/ |
D | af_key.c | 837 if (natt && natt->encap_type) { in __pfkey_xfrm_state2msg() 1018 if (natt && natt->encap_type) { in __pfkey_xfrm_state2msg() 1026 n_type->sadb_x_nat_t_type_type = natt->encap_type; in __pfkey_xfrm_state2msg() 1292 natt->encap_type = n_type->sadb_x_nat_t_type_type; in pfkey_msg2xfrm_state()
|