Home
last modified time | relevance | path

Searched refs:encap_type (Results 1 – 23 of 23) sorted by relevance

/net/core/
Dlwtunnel.c31 static const char *lwtunnel_encap_str(enum lwtunnel_encap_types encap_type) in lwtunnel_encap_str() argument
36 switch (encap_type) { in lwtunnel_encap_str()
90 unsigned int encap_type) in lwtunnel_encap_del_ops() argument
94 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_encap_del_ops()
95 encap_type > LWTUNNEL_ENCAP_MAX) in lwtunnel_encap_del_ops()
99 &lwtun_encaps[encap_type], in lwtunnel_encap_del_ops()
108 int lwtunnel_build_state(struct net *net, u16 encap_type, in lwtunnel_build_state() argument
117 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_build_state()
118 encap_type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_build_state()
126 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state()
[all …]
/net/ipv4/
Dxfrm4_input.c91 __u16 encap_type = up->encap_type; in xfrm4_udp_encap_rcv() local
94 if (!encap_type) in xfrm4_udp_encap_rcv()
108 switch (encap_type) { in xfrm4_udp_encap_rcv()
161 return xfrm4_rcv_encap(skb, IPPROTO_ESP, 0, encap_type); in xfrm4_udp_encap_rcv()
Desp4.c277 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done()
343 int encap_type, in esp_output_udp_encap() argument
364 if (encap_type == UDP_ENCAP_ESPINUDP_NON_IKE) { in esp_output_udp_encap()
414 int encap_type; in esp_output_encap() local
419 encap_type = encap->encap_type; in esp_output_encap()
422 switch (encap_type) { in esp_output_encap()
426 esph = esp_output_udp_encap(skb, encap_type, esp, sport, dport); in esp_output_encap()
645 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_tail()
780 switch (x->encap->encap_type) { in esp_input_done2()
1171 switch (encap->encap_type) { in esp_init_state()
Dudp_tunnel_core.c76 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
Dxfrm4_protocol.c62 int encap_type) in xfrm4_rcv_encap() argument
84 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm4_rcv_encap()
Dip_vti.c48 int encap_type, bool update_skb_dev) in vti_input() argument
66 return xfrm_input(skb, nexthdr, spi, encap_type); in vti_input()
76 int encap_type) in vti_input_proto() argument
78 return vti_input(skb, nexthdr, spi, encap_type, false); in vti_input_proto()
Dfib_semantics.c583 struct nlattr *encap, u16 encap_type, in fib_nh_common_init() argument
597 if (encap_type == LWTUNNEL_ENCAP_NONE) { in fib_nh_common_init()
602 err = lwtunnel_build_state(net, encap_type, encap, in fib_nh_common_init()
853 static int fib_encap_match(struct net *net, u16 encap_type, in fib_encap_match() argument
862 if (encap_type == LWTUNNEL_ENCAP_NONE) in fib_encap_match()
865 ret = lwtunnel_build_state(net, encap_type, encap, AF_INET, in fib_encap_match()
Dudp.c735 if (!sk || udp_sk(sk)->encap_type) { in __udp4_lib_err()
2151 if (static_branch_unlikely(&udp_encap_needed_key) && up->encap_type) { in udp_queue_rcv_one_skb()
2666 if (up->encap_type) { in udp_destroy_sock()
2726 up->encap_type = val; in udp_lib_setsockopt()
2831 val = up->encap_type; in udp_lib_getsockopt()
Dfou.c593 tunnel_cfg.encap_type = 1; in fou_create()
/net/ipv6/
Dxfrm6_input.c87 __u16 encap_type = up->encap_type; in xfrm6_udp_encap_rcv() local
93 if (!encap_type) in xfrm6_udp_encap_rcv()
107 switch (encap_type) { in xfrm6_udp_encap_rcv()
159 return xfrm6_rcv_encap(skb, IPPROTO_ESP, 0, encap_type); in xfrm6_udp_encap_rcv()
Desp6.c314 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done()
380 int encap_type, in esp6_output_udp_encap() argument
401 if (encap_type == UDP_ENCAP_ESPINUDP_NON_IKE) { in esp6_output_udp_encap()
451 int encap_type; in esp6_output_encap() local
456 encap_type = encap->encap_type; in esp6_output_encap()
459 switch (encap_type) { in esp6_output_encap()
463 esph = esp6_output_udp_encap(skb, encap_type, esp, sport, dport); in esp6_output_encap()
682 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp6_output_tail()
826 switch (x->encap->encap_type) { in esp6_input_done2()
1223 switch (encap->encap_type) { in esp6_init_state()
Dxfrm6_protocol.c63 int encap_type) in xfrm6_rcv_encap() argument
97 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm6_rcv_encap()
Dudp.c598 if (!sk || udp_sk(sk)->encap_type) { in __udp6_lib_err()
704 if (static_branch_unlikely(&udpv6_encap_needed_key) && up->encap_type) { in udpv6_queue_rcv_one_skb()
1657 if (up->encap_type) { in udpv6_destroy_sock()
Dip6_vti.c300 int encap_type) in vti6_input_proto() argument
330 return xfrm_input(skb, nexthdr, spi, encap_type); in vti6_input_proto()
/net/xfrm/
Dxfrm_input.c460 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument
479 if (encap_type < 0) { in xfrm_input()
489 if (encap_type == -1) in xfrm_input()
497 if (encap_type == -1) { in xfrm_input()
504 encap_type = 0; in xfrm_input()
625 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { in xfrm_input()
676 encap_type = 0; in xfrm_input()
Dxfrm_interface_core.c211 int encap_type, unsigned short family) in xfrmi_input() argument
229 return xfrm_input(skb, nexthdr, spi, encap_type); in xfrmi_input()
246 static int xfrmi4_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrmi4_input() argument
248 return xfrmi_input(skb, nexthdr, spi, encap_type, AF_INET); in xfrmi4_input()
251 static int xfrmi6_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrmi6_input() argument
253 return xfrmi_input(skb, nexthdr, spi, encap_type, AF_INET6); in xfrmi6_input()
Dxfrm_state.c1741 x->encap->encap_type == x1->encap->encap_type) in xfrm_state_update()
Dxfrm_user.c969 uep->encap_type = ep->encap_type; in copy_to_user_encap()
/net/rxrpc/
Dlocal_object.c138 tuncfg.encap_type = UDP_ENCAP_RXRPC; in rxrpc_open_socket()
/net/l2tp/
Dl2tp_core.c1142 (udp_sk(sk))->encap_type = 0; in l2tp_tunnel_destruct()
1496 .encap_type = UDP_ENCAP_L2TPINUDP, in l2tp_tunnel_register()
/net/sctp/
Dprotocol.c875 tuncfg.encap_type = 1; in sctp_udp_sock_start()
897 tuncfg.encap_type = 1; in sctp_udp_sock_start()
/net/tipc/
Dudp_media.c775 tuncfg.encap_type = 1; in tipc_udp_enable()
/net/key/
Daf_key.c819 if (natt && natt->encap_type) { in __pfkey_xfrm_state2msg()
998 if (natt && natt->encap_type) { in __pfkey_xfrm_state2msg()
1006 n_type->sadb_x_nat_t_type_type = natt->encap_type; in __pfkey_xfrm_state2msg()
1272 natt->encap_type = n_type->sadb_x_nat_t_type_type; in pfkey_msg2xfrm_state()