Home
last modified time | relevance | path

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

123

/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()
/net/ipv4/
Desp4.c136 struct xfrm_encap_tmpl *encap = x->encap; in esp_find_tcp_sk() local
147 sport = encap->encap_sport; in esp_find_tcp_sk()
148 dport = encap->encap_dport; in esp_find_tcp_sk()
176 if (encap->encap_sport != sport || in esp_find_tcp_sk()
177 encap->encap_dport != dport) { in esp_find_tcp_sk()
277 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done()
411 struct xfrm_encap_tmpl *encap = x->encap; in esp_output_encap() local
417 sport = encap->encap_sport; in esp_output_encap()
418 dport = encap->encap_dport; in esp_output_encap()
419 encap_type = encap->encap_type; in esp_output_encap()
[all …]
Dipip.c582 tunnel->encap.type) || in ipip_fill_info()
584 tunnel->encap.sport) || in ipip_fill_info()
586 tunnel->encap.dport) || in ipip_fill_info()
588 tunnel->encap.flags)) in ipip_fill_info()
Dip_tunnel.c466 memset(&t->encap, 0, sizeof(t->encap)); in ip_tunnel_encap_setup()
472 t->encap.type = ipencap->type; in ip_tunnel_encap_setup()
473 t->encap.sport = ipencap->sport; in ip_tunnel_encap_setup()
474 t->encap.dport = ipencap->dport; in ip_tunnel_encap_setup()
475 t->encap.flags = ipencap->flags; in ip_tunnel_encap_setup()
588 if (tunnel->encap.type != TUNNEL_ENCAP_NONE) in ip_md_tunnel_xmit()
813 + rt->dst.header_len + ip_encap_hlen(&tunnel->encap); in ip_tunnel_xmit()
Dxfrm4_tunnel.c32 if (x->encap) in ipip_init_state()
/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.c85 bool encap, udpfrag; in ipv6_gso_segment() local
94 encap = SKB_GSO_CB(skb)->encap_level > 0; in ipv6_gso_segment()
95 if (encap) in ipv6_gso_segment()
107 udpfrag = proto == IPPROTO_UDP && encap && in ipv6_gso_segment()
151 if (encap) in ipv6_gso_segment()
Desp6_offload.c128 if (x->outer_mode.encap == XFRM_MODE_TRANSPORT) { in esp6_gso_encap()
216 switch (x->outer_mode.encap) { in xfrm6_outer_mode_gso_segment()
393 .encap = esp6_gso_encap,
Dip6_tunnel.c1228 if (t->encap.type != TUNNEL_ENCAP_NONE) in ip6_tnl_xmit()
1795 memset(&t->encap, 0, sizeof(t->encap)); in ip6_tnl_encap_setup()
1801 t->encap.type = ipencap->type; in ip6_tnl_encap_setup()
1802 t->encap.sport = ipencap->sport; in ip6_tnl_encap_setup()
1803 t->encap.dport = ipencap->dport; in ip6_tnl_encap_setup()
1804 t->encap.flags = ipencap->flags; in ip6_tnl_encap_setup()
2163 if (nla_put_u16(skb, IFLA_IPTUN_ENCAP_TYPE, tunnel->encap.type) || in ip6_tnl_fill_info()
2164 nla_put_be16(skb, IFLA_IPTUN_ENCAP_SPORT, tunnel->encap.sport) || in ip6_tnl_fill_info()
2165 nla_put_be16(skb, IFLA_IPTUN_ENCAP_DPORT, tunnel->encap.dport) || in ip6_tnl_fill_info()
2166 nla_put_u16(skb, IFLA_IPTUN_ENCAP_FLAGS, tunnel->encap.flags)) in ip6_tnl_fill_info()
/net/netfilter/
Dnft_flow_offload.c86 } encap[NF_FLOW_TABLE_ENCAP_MAX]; member
128 info->encap[info->num_encaps].id = path->encap.id; in nft_dev_path_info()
129 info->encap[info->num_encaps].proto = path->encap.proto; in nft_dev_path_info()
132 memcpy(info->h_dest, path->encap.h_dest, ETH_ALEN); in nft_dev_path_info()
143 info->encap[info->num_encaps].id = path->bridge.vlan_id; in nft_dev_path_info()
144 info->encap[info->num_encaps].proto = path->bridge.vlan_proto; in nft_dev_path_info()
206 route->tuple[!dir].in.encap[i].id = info.encap[i].id; in nft_dev_forward_path()
207 route->tuple[!dir].in.encap[i].proto = info.encap[i].proto; in nft_dev_forward_path()
Dnf_flow_table_offload.c117 tuple->encap[0].proto == htons(ETH_P_8021Q)) { in nf_flow_rule_match()
120 tuple->encap[0].id, in nf_flow_rule_match()
121 tuple->encap[0].proto); in nf_flow_rule_match()
126 tuple->encap[1].proto == htons(ETH_P_8021Q)) { in nf_flow_rule_match()
131 tuple->encap[1].id, in nf_flow_rule_match()
132 tuple->encap[1].proto); in nf_flow_rule_match()
137 tuple->encap[1].id, in nf_flow_rule_match()
138 tuple->encap[1].proto); in nf_flow_rule_match()
639 if (tuple->encap[i].proto == htons(ETH_P_8021Q)) { in nf_flow_rule_route_common()
655 switch (other_tuple->encap[i].proto) { in nf_flow_rule_route_common()
[all …]
Dnf_flow_table_ip.c148 tuple->encap[i].id = skb_vlan_tag_get(skb); in nf_flow_tuple_encap()
149 tuple->encap[i].proto = skb->vlan_proto; in nf_flow_tuple_encap()
155 tuple->encap[i].id = ntohs(veth->h_vlan_TCI); in nf_flow_tuple_encap()
156 tuple->encap[i].proto = skb->protocol; in nf_flow_tuple_encap()
160 tuple->encap[i].id = ntohs(phdr->sid); in nf_flow_tuple_encap()
161 tuple->encap[i].proto = skb->protocol; in nf_flow_tuple_encap()
Dnf_flow_table_core.c118 flow_tuple->encap[j].id = route->tuple[dir].in.encap[i].id; in flow_offload_fill_route()
119 flow_tuple->encap[j].proto = route->tuple[dir].in.encap[i].proto; in flow_offload_fill_route()
/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()
Dl2tp_core.h134 enum l2tp_encap_type encap; member
174 enum l2tp_encap_type encap; member
/net/xfrm/
Dxfrm_state.c433 .encap = XFRM_MODE_BEET,
438 .encap = XFRM_MODE_TRANSPORT,
442 .encap = XFRM_MODE_TUNNEL,
450 .encap = XFRM_MODE_BEET,
455 .encap = XFRM_MODE_ROUTEOPTIMIZATION,
459 .encap = XFRM_MODE_TRANSPORT,
463 .encap = XFRM_MODE_TUNNEL,
469 static const struct xfrm_mode *xfrm_get_mode(unsigned int encap, int family) in xfrm_get_mode() argument
473 if (unlikely(encap >= XFRM_MODE_MAX)) in xfrm_get_mode()
478 mode = &xfrm4_mode_map[encap]; in xfrm_get_mode()
[all …]
Dxfrm_output.c417 switch (x->outer_mode.encap) { in xfrm4_prepare_output()
440 switch (x->outer_mode.encap) { in xfrm6_prepare_output()
456 switch (x->outer_mode.encap) { in xfrm_outer_mode_output()
546 x->type_offload->encap(x, skb); in xfrm_output_one()
662 if (x->outer_mode.encap == XFRM_MODE_TUNNEL) { in xfrm_get_inner_ipproto()
798 if (x->outer_mode.encap == XFRM_MODE_BEET && in xfrm4_extract_output()
Dxfrm_user.c592 x->encap = kmemdup(nla_data(attrs[XFRMA_ENCAP]), in xfrm_state_construct()
593 sizeof(*x->encap), GFP_KERNEL); in xfrm_state_construct()
594 if (x->encap == NULL) in xfrm_state_construct()
1036 if (x->encap) { in copy_to_user_state_extra()
1037 ret = copy_to_user_encap(x->encap, skb); in copy_to_user_state_extra()
2633 struct xfrm_encap_tmpl *encap = NULL; in xfrm_do_migrate() local
2653 encap = kmemdup(nla_data(attrs[XFRMA_ENCAP]), in xfrm_do_migrate()
2654 sizeof(*encap), GFP_KERNEL); in xfrm_do_migrate()
2655 if (!encap) in xfrm_do_migrate()
2662 err = xfrm_migrate(&pi->sel, pi->dir, type, m, n, kmp, net, encap, if_id); in xfrm_do_migrate()
[all …]
Dxfrm_device.c69 switch (x->outer_mode.encap) { in xfrm_outer_mode_prep()
236 if (x->encap || x->tfcpad) in xfrm_dev_state_add()
306 if (!x->type_offload || x->encap) in xfrm_dev_offload_ok()
Dxfrm_input.c337 switch (inner_mode->encap) { in xfrm_inner_mode_encap_remove()
439 switch (inner_mode->encap) { in xfrm_inner_mode_input()
625 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { in xfrm_input()
/net/core/
Dlwtunnel.c109 struct nlattr *encap, unsigned int family, in lwtunnel_build_state() argument
119 NL_SET_ERR_MSG_ATTR(extack, encap, in lwtunnel_build_state()
132 ret = ops->build_state(net, encap, family, cfg, lws, extack); in lwtunnel_build_state()
139 NL_SET_ERR_MSG_ATTR(extack, encap, in lwtunnel_build_state()
/net/atm/
Dclip.c219 if (!clip_vcc->encap || in clip_push()
324 CLIP_VCC(vcc)->encap = mode; in clip_encap()
378 if (entry->vccs->encap) { in clip_start_xmit()
430 clip_vcc->encap = 1; in clip_mkip()
747 llc = ((clip_vcc == SEQ_NO_VCC_TOKEN) || clip_vcc->encap); in atmarp_info()

123