| /Linux-v4.19/net/bridge/netfilter/ |
| D | ebt_vlan.c | 46 __be16 encap; in ebt_vlan_mt() local 50 encap = skb->protocol; in ebt_vlan_mt() 60 encap = fp->h_vlan_encapsulated_proto; in ebt_vlan_mt() 84 EXIT_ON_MISMATCH(encap, EBT_VLAN_ENCAP); in ebt_vlan_mt() 153 if ((unsigned short) ntohs(info->encap) < ETH_ZLEN) { in ebt_vlan_mt_check() 155 "minimal\n", ntohs(info->encap)); in ebt_vlan_mt_check()
|
| /Linux-v4.19/include/net/ |
| D | ip6_tunnel.h | 64 struct ip_tunnel_encap encap; member 112 if (t->encap.type == TUNNEL_ENCAP_NONE) in ip6_tnl_encap() 115 if (t->encap.type >= MAX_IPTUN_ENCAP_OPS) in ip6_tnl_encap() 119 ops = rcu_dereference(ip6tun_encaps[t->encap.type]); in ip6_tnl_encap() 121 ret = ops->build_header(skb, &t->encap, protocol, fl6); in ip6_tnl_encap()
|
| D | lwtunnel.h | 37 int (*build_state)(struct nlattr *encap, 117 struct nlattr *encap, 211 struct nlattr *encap, in lwtunnel_build_state() argument
|
| D | ip_tunnels.h | 132 struct ip_tunnel_encap encap; member 355 if (t->encap.type == TUNNEL_ENCAP_NONE) in ip_tunnel_encap() 358 if (t->encap.type >= MAX_IPTUN_ENCAP_OPS) in ip_tunnel_encap() 362 ops = rcu_dereference(iptun_encaps[t->encap.type]); in ip_tunnel_encap() 364 ret = ops->build_header(skb, &t->encap, protocol, fl4); in ip_tunnel_encap()
|
| D | atmclip.h | 27 unsigned char encap; /* 0: NULL, 1: LLC/SNAP */ member
|
| /Linux-v4.19/net/ipv4/ |
| D | esp4.c | 232 struct xfrm_encap_tmpl *encap = x->encap; in esp_output_udp_encap() local 236 sport = encap->encap_sport; in esp_output_udp_encap() 237 dport = encap->encap_dport; in esp_output_udp_encap() 238 encap_type = encap->encap_type; in esp_output_udp_encap() 275 if (x->encap) in esp_output_head() 589 if (x->encap) { in esp_input_done2() 590 struct xfrm_encap_tmpl *encap = x->encap; in esp_input_done2() local 600 uh->source != encap->encap_sport) { in esp_input_done2() 989 if (x->encap) { in esp_init_state() 990 struct xfrm_encap_tmpl *encap = x->encap; in esp_init_state() local [all …]
|
| D | ipip.c | 594 tunnel->encap.type) || in ipip_fill_info() 596 tunnel->encap.sport) || in ipip_fill_info() 598 tunnel->encap.dport) || in ipip_fill_info() 600 tunnel->encap.flags)) in ipip_fill_info()
|
| D | ip_tunnel.c | 484 memset(&t->encap, 0, sizeof(t->encap)); in ip_tunnel_encap_setup() 490 t->encap.type = ipencap->type; in ip_tunnel_encap_setup() 491 t->encap.sport = ipencap->sport; in ip_tunnel_encap_setup() 492 t->encap.dport = ipencap->dport; in ip_tunnel_encap_setup() 493 t->encap.flags = ipencap->flags; in ip_tunnel_encap_setup() 579 if (tunnel->encap.type != TUNNEL_ENCAP_NONE) in ip_md_tunnel_xmit() 776 + rt->dst.header_len + ip_encap_hlen(&tunnel->encap); in ip_tunnel_xmit()
|
| /Linux-v4.19/drivers/isdn/i4l/ |
| D | isdn_concap.c | 92 struct concap_proto *isdn_concap_new(int encap) in isdn_concap_new() argument 94 switch (encap) { in isdn_concap_new()
|
| /Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
| D | eswitch_offloads.c | 531 if (esw->offloads.encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE) in esw_create_offloads_fast_fdb_table() 1237 int mlx5_devlink_eswitch_encap_mode_set(struct devlink *devlink, u8 encap) in mlx5_devlink_eswitch_encap_mode_set() argument 1247 if (encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE && in mlx5_devlink_eswitch_encap_mode_set() 1248 (!MLX5_CAP_ESW_FLOWTABLE_FDB(dev, encap) || in mlx5_devlink_eswitch_encap_mode_set() 1252 if (encap && encap != DEVLINK_ESWITCH_ENCAP_MODE_BASIC) in mlx5_devlink_eswitch_encap_mode_set() 1256 esw->offloads.encap = encap; in mlx5_devlink_eswitch_encap_mode_set() 1260 if (esw->offloads.encap == encap) in mlx5_devlink_eswitch_encap_mode_set() 1270 esw->offloads.encap = encap; in mlx5_devlink_eswitch_encap_mode_set() 1274 esw->offloads.encap = !encap; in mlx5_devlink_eswitch_encap_mode_set() 1280 int mlx5_devlink_eswitch_encap_mode_get(struct devlink *devlink, u8 *encap) in mlx5_devlink_eswitch_encap_mode_get() argument [all …]
|
| D | eswitch.h | 153 u8 encap; member 276 int mlx5_devlink_eswitch_encap_mode_set(struct devlink *devlink, u8 encap); 277 int mlx5_devlink_eswitch_encap_mode_get(struct devlink *devlink, u8 *encap);
|
| /Linux-v4.19/net/l2tp/ |
| D | l2tp_core.c | 969 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { in l2tp_build_l2tpv3_header() 1018 int uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(struct udphdr) : 0; in l2tp_xmit_core() 1059 int uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(struct udphdr) : 0; in l2tp_xmit_skb() 1105 switch (tunnel->encap) { in l2tp_xmit_skb() 1158 switch (tunnel->encap) { in l2tp_tunnel_destruct() 1296 switch (cfg->encap) { in l2tp_tunnel_sock_create() 1406 enum l2tp_encap_type encap = L2TP_ENCAPTYPE_UDP; in l2tp_tunnel_create() local 1409 encap = cfg->encap; in l2tp_tunnel_create() 1430 tunnel->encap = encap; in l2tp_tunnel_create() 1450 enum l2tp_encap_type encap) in l2tp_validate_socket() argument [all …]
|
| D | l2tp_debugfs.c | 161 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) in l2tp_dfs_seq_tunnel_show() 166 tunnel->encap == L2TP_ENCAPTYPE_UDP ? "UDP" : in l2tp_dfs_seq_tunnel_show() 167 tunnel->encap == L2TP_ENCAPTYPE_IP ? "IP" : in l2tp_dfs_seq_tunnel_show()
|
| D | l2tp_core.h | 131 enum l2tp_encap_type encap; member 168 enum l2tp_encap_type encap; member
|
| /Linux-v4.19/net/xfrm/ |
| D | xfrm_state.c | 340 if (unlikely(mode->encap >= XFRM_MODE_MAX)) in xfrm_register_mode() 350 if (modemap[mode->encap]) in xfrm_register_mode() 358 modemap[mode->encap] = mode; in xfrm_register_mode() 374 if (unlikely(mode->encap >= XFRM_MODE_MAX)) in xfrm_unregister_mode() 384 if (likely(modemap[mode->encap] == mode)) { in xfrm_unregister_mode() 385 modemap[mode->encap] = NULL; in xfrm_unregister_mode() 396 static struct xfrm_mode *xfrm_get_mode(unsigned int encap, int family) in xfrm_get_mode() argument 402 if (unlikely(encap >= XFRM_MODE_MAX)) in xfrm_get_mode() 410 mode = READ_ONCE(afinfo->mode_map[encap]); in xfrm_get_mode() 416 request_module("xfrm-mode-%d-%d", family, encap); in xfrm_get_mode() [all …]
|
| D | xfrm_user.c | 583 x->encap = kmemdup(nla_data(attrs[XFRMA_ENCAP]), in xfrm_state_construct() 584 sizeof(*x->encap), GFP_KERNEL); in xfrm_state_construct() 585 if (x->encap == NULL) in xfrm_state_construct() 910 if (x->encap) { in copy_to_user_state_extra() 911 ret = nla_put(skb, XFRMA_ENCAP, sizeof(*x->encap), x->encap); in copy_to_user_state_extra() 2355 struct xfrm_encap_tmpl *encap = NULL; in xfrm_do_migrate() local 2374 encap = kmemdup(nla_data(attrs[XFRMA_ENCAP]), in xfrm_do_migrate() 2375 sizeof(*encap), GFP_KERNEL); in xfrm_do_migrate() 2376 if (!encap) in xfrm_do_migrate() 2380 err = xfrm_migrate(&pi->sel, pi->dir, type, m, n, kmp, net, encap); in xfrm_do_migrate() [all …]
|
| /Linux-v4.19/net/ipv6/ |
| D | ip6_offload.c | 69 bool encap, udpfrag; in ipv6_gso_segment() local 78 encap = SKB_GSO_CB(skb)->encap_level > 0; in ipv6_gso_segment() 79 if (encap) in ipv6_gso_segment() 91 udpfrag = proto == IPPROTO_UDP && encap && in ipv6_gso_segment() 133 if (encap) in ipv6_gso_segment()
|
| D | xfrm6_mode_ro.c | 66 .encap = XFRM_MODE_ROUTEOPTIMIZATION,
|
| /Linux-v4.19/drivers/infiniband/core/ |
| D | uverbs_std_types_flow_action.c | 221 struct ib_flow_spec_list encap; member 297 ret = flow_action_esp_get_encap(&esp_attr->encap, attrs); in parse_flow_action_esp() 301 esp_attr->hdr.encap = &esp_attr->encap; in parse_flow_action_esp()
|
| /Linux-v4.19/net/core/ |
| D | lwtunnel.c | 107 struct nlattr *encap, unsigned int family, in lwtunnel_build_state() argument 117 NL_SET_ERR_MSG_ATTR(extack, encap, in lwtunnel_build_state() 127 ret = ops->build_state(encap, family, cfg, lws, extack); in lwtunnel_build_state() 137 NL_SET_ERR_MSG_ATTR(extack, encap, in lwtunnel_build_state()
|
| /Linux-v4.19/tools/testing/selftests/bpf/ |
| D | test_lwt_seg6local.sh | 114 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…
|
| /Linux-v4.19/include/uapi/linux/netfilter_bridge/ |
| D | ebt_vlan.h | 16 __be16 encap; /* VLAN Encapsulated frame code {0-65535} */ member
|
| /Linux-v4.19/net/atm/ |
| D | clip.c | 218 if (!clip_vcc->encap || in clip_push() 323 CLIP_VCC(vcc)->encap = mode; in clip_encap() 377 if (entry->vccs->encap) { in clip_start_xmit() 429 clip_vcc->encap = 1; in clip_mkip() 746 llc = ((clip_vcc == SEQ_NO_VCC_TOKEN) || clip_vcc->encap); in atmarp_info()
|
| /Linux-v4.19/samples/bpf/ |
| D | lwt_len_hist.sh | 31 ip route add 192.168.253.2/32 encap bpf out obj lwt_len_hist_kern.o section len_hist dev $VETH0
|
| /Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/ |
| D | bnxt_tc.c | 654 struct hwrm_cfa_encap_data_vxlan *encap = in hwrm_cfa_encap_record_alloc() local 657 (struct hwrm_vxlan_ipv4_hdr *)encap->l3; in hwrm_cfa_encap_record_alloc() 664 ether_addr_copy(encap->dst_mac_addr, l2_info->dmac); in hwrm_cfa_encap_record_alloc() 665 ether_addr_copy(encap->src_mac_addr, l2_info->smac); in hwrm_cfa_encap_record_alloc() 667 encap->num_vlan_tags = l2_info->num_vlans; in hwrm_cfa_encap_record_alloc() 668 encap->ovlan_tci = l2_info->inner_vlan_tci; in hwrm_cfa_encap_record_alloc() 669 encap->ovlan_tpid = l2_info->inner_vlan_tpid; in hwrm_cfa_encap_record_alloc() 680 encap->dst_port = encap_key->tp_dst; in hwrm_cfa_encap_record_alloc() 681 encap->vni = tunnel_id_to_key32(encap_key->tun_id); in hwrm_cfa_encap_record_alloc()
|