encap 1241 drivers/crypto/caam/caamalg_desc.c unsigned int icvsize, const bool encap, encap 1267 drivers/crypto/caam/caamalg_desc.c if (encap) { encap 1327 drivers/crypto/caam/caamalg_desc.c if (encap) { encap 101 drivers/crypto/caam/caamalg_desc.h unsigned int icvsize, const bool encap, encap 222 drivers/crypto/chelsio/chcr_ipsec.c if (x->encap) { encap 223 drivers/infiniband/core/uverbs_std_types_flow_action.c struct ib_flow_spec_list encap; encap 298 drivers/infiniband/core/uverbs_std_types_flow_action.c ret = flow_action_esp_get_encap(&esp_attr->encap, attrs); encap 302 drivers/infiniband/core/uverbs_std_types_flow_action.c esp_attr->hdr.encap = &esp_attr->encap; encap 4210 drivers/infiniband/hw/mlx5/main.c if (!attr->keymat || attr->replay || attr->encap || encap 4277 drivers/infiniband/hw/mlx5/main.c if (attr->keymat || attr->replay || attr->encap || encap 613 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c struct hwrm_cfa_encap_data_vxlan *encap = encap 616 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c (struct hwrm_vxlan_ipv4_hdr *)encap->l3; encap 623 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c ether_addr_copy(encap->dst_mac_addr, l2_info->dmac); encap 624 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c ether_addr_copy(encap->src_mac_addr, l2_info->smac); encap 626 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c encap->num_vlan_tags = l2_info->num_vlans; encap 627 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c encap->ovlan_tci = l2_info->inner_vlan_tci; encap 628 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c encap->ovlan_tpid = l2_info->inner_vlan_tpid; encap 639 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c encap->dst_port = encap_key->tp_dst; encap 640 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c encap->vni = tunnel_id_to_key32(encap_key->tun_id); encap 1344 drivers/net/ethernet/cisco/enic/enic_main.c bool outer_csum_ok = true, encap = false; encap 1412 drivers/net/ethernet/cisco/enic/enic_main.c encap = true; encap 1419 drivers/net/ethernet/cisco/enic/enic_main.c encap = true; encap 1440 drivers/net/ethernet/cisco/enic/enic_main.c skb->csum_level = encap; encap 243 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c if (x->encap) { encap 3222 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c bool encap = false; encap 3275 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (encap) { encap 3281 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c encap = false; encap 3349 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c encap = true; encap 2585 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c return ESW_ALLOWED(esw) ? esw->offloads.encap : encap 193 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h enum devlink_eswitch_encap_mode encap; encap 411 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h enum devlink_eswitch_encap_mode encap, encap 414 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h enum devlink_eswitch_encap_mode *encap); encap 951 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (esw->offloads.encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE) encap 1097 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (esw->offloads.encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE) encap 1115 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->offloads.encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE) { encap 2159 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->offloads.encap = DEVLINK_ESWITCH_ENCAP_MODE_BASIC; encap 2161 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->offloads.encap = DEVLINK_ESWITCH_ENCAP_MODE_NONE; encap 2220 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->offloads.encap = DEVLINK_ESWITCH_ENCAP_MODE_NONE; encap 2462 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c enum devlink_eswitch_encap_mode encap, encap 2473 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (encap != DEVLINK_ESWITCH_ENCAP_MODE_NONE && encap 2478 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (encap && encap != DEVLINK_ESWITCH_ENCAP_MODE_BASIC) encap 2482 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->offloads.encap = encap; encap 2486 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (esw->offloads.encap == encap) encap 2497 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->offloads.encap = encap; encap 2504 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->offloads.encap = !encap; encap 2512 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c enum devlink_eswitch_encap_mode *encap) encap 2522 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c *encap = esw->offloads.encap; encap 413 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c bool encap = action_type_set[DR_ACTION_TYP_L2_TO_TNL_L2] || encap 439 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c encap); encap 443 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c if (encap) { encap 572 drivers/net/ethernet/pensando/ionic/ionic_txrx.c bool encap; encap 582 drivers/net/ethernet/pensando/ionic/ionic_txrx.c encap = skb->encapsulation; encap 589 drivers/net/ethernet/pensando/ionic/ionic_txrx.c if (encap) encap 596 drivers/net/ethernet/pensando/ionic/ionic_txrx.c if (encap) encap 722 drivers/net/ethernet/pensando/ionic/ionic_txrx.c bool encap; encap 726 drivers/net/ethernet/pensando/ionic/ionic_txrx.c encap = skb->encapsulation; encap 733 drivers/net/ethernet/pensando/ionic/ionic_txrx.c flags |= encap ? IONIC_TXQ_DESC_FLAG_ENCAP : 0; encap 759 drivers/net/ethernet/pensando/ionic/ionic_txrx.c bool encap; encap 763 drivers/net/ethernet/pensando/ionic/ionic_txrx.c encap = skb->encapsulation; encap 770 drivers/net/ethernet/pensando/ionic/ionic_txrx.c flags |= encap ? IONIC_TXQ_DESC_FLAG_ENCAP : 0; encap 4220 drivers/net/ethernet/sfc/ef10.c #define MAP_FILTER_TO_MCDI_FLAG(gen_flag, mcdi_field, encap) { \ encap 4225 drivers/net/ethernet/sfc/ef10.c (1 << ((encap) ? \ encap 4816 drivers/net/ethernet/sfc/ef10.c static int efx_ef10_filter_match_flags_from_mcdi(bool encap, u32 mcdi_flags) encap 4828 drivers/net/ethernet/sfc/ef10.c if (encap) { encap 4890 drivers/net/ethernet/sfc/ef10.c bool encap, encap 4899 drivers/net/ethernet/sfc/ef10.c mf = efx_ef10_filter_match_flags_from_mcdi(encap, encap 4911 drivers/net/ethernet/sfc/ef10.c bool encap) encap 4921 drivers/net/ethernet/sfc/ef10.c encap ? encap 4939 drivers/net/ethernet/sfc/ef10.c rc = efx_ef10_filter_match_flags_from_mcdi(encap, mcdi_flags); encap 1290 drivers/net/hyperv/hyperv_net.h u32 encap; encap 1297 drivers/net/hyperv/hyperv_net.h u32 encap; encap 1322 drivers/net/hyperv/hyperv_net.h u32 encap; encap 381 drivers/net/wireless/intersil/orinoco/main.c u8 encap[6]; /* 802.2 header */ encap 396 drivers/net/wireless/intersil/orinoco/main.c memcpy(hdr.encap, encaps_hdr, sizeof(encaps_hdr)); encap 27 include/net/atmclip.h unsigned char encap; /* 0: NULL, 1: LLC/SNAP */ encap 64 include/net/ip6_tunnel.h struct ip_tunnel_encap encap; encap 114 include/net/ip6_tunnel.h if (t->encap.type == TUNNEL_ENCAP_NONE) encap 117 include/net/ip6_tunnel.h if (t->encap.type >= MAX_IPTUN_ENCAP_OPS) encap 121 include/net/ip6_tunnel.h ops = rcu_dereference(ip6tun_encaps[t->encap.type]); encap 123 include/net/ip6_tunnel.h ret = ops->build_header(skb, &t->encap, protocol, fl6); encap 132 include/net/ip_tunnels.h struct ip_tunnel_encap encap; encap 358 include/net/ip_tunnels.h if (t->encap.type == TUNNEL_ENCAP_NONE) encap 361 include/net/ip_tunnels.h if (t->encap.type >= MAX_IPTUN_ENCAP_OPS) encap 365 include/net/ip_tunnels.h ops = rcu_dereference(iptun_encaps[t->encap.type]); encap 367 include/net/ip_tunnels.h ret = ops->build_header(skb, &t->encap, protocol, fl4); encap 37 include/net/lwtunnel.h int (*build_state)(struct nlattr *encap, encap 117 include/net/lwtunnel.h struct nlattr *encap, encap 213 include/net/lwtunnel.h struct nlattr *encap, encap 44 include/net/xfrm.h #define MODULE_ALIAS_XFRM_MODE(family, encap) \ encap 45 include/net/xfrm.h MODULE_ALIAS("xfrm-mode-" __stringify(family) "-" __stringify(encap)) encap 136 include/net/xfrm.h u8 encap; encap 195 include/net/xfrm.h struct xfrm_encap_tmpl *encap; encap 416 include/net/xfrm.h void (*encap)(struct xfrm_state *, struct sk_buff *pskb); encap 582 include/net/xfrm.h const struct xfrm_encap_tmpl *encap); encap 1661 include/net/xfrm.h const struct xfrm_encap_tmpl *encap); encap 1665 include/net/xfrm.h struct xfrm_encap_tmpl *encap); encap 1669 include/net/xfrm.h struct xfrm_encap_tmpl *encap); encap 2103 include/rdma/ib_verbs.h struct ib_flow_spec_list *encap; encap 16 include/uapi/linux/netfilter_bridge/ebt_vlan.h __be16 encap; /* VLAN Encapsulated frame code {0-65535} */ encap 219 net/atm/clip.c if (!clip_vcc->encap || encap 324 net/atm/clip.c CLIP_VCC(vcc)->encap = mode; encap 378 net/atm/clip.c if (entry->vccs->encap) { encap 430 net/atm/clip.c clip_vcc->encap = 1; encap 747 net/atm/clip.c llc = ((clip_vcc == SEQ_NO_VCC_TOKEN) || clip_vcc->encap); encap 166 net/atm/proc.c seq_printf(seq, "%s", clip_vcc->encap ? "LLC/SNAP" : "None"); encap 34 net/bridge/netfilter/ebt_vlan.c __be16 encap; encap 38 net/bridge/netfilter/ebt_vlan.c encap = skb->protocol; encap 48 net/bridge/netfilter/ebt_vlan.c encap = fp->h_vlan_encapsulated_proto; encap 72 net/bridge/netfilter/ebt_vlan.c EXIT_ON_MISMATCH(encap, EBT_VLAN_ENCAP); encap 141 net/bridge/netfilter/ebt_vlan.c if ((unsigned short) ntohs(info->encap) < ETH_ZLEN) { encap 143 net/bridge/netfilter/ebt_vlan.c "minimal\n", ntohs(info->encap)); encap 3015 net/core/filter.c bool encap = flags & BPF_F_ADJ_ROOM_ENCAP_L3_MASK; encap 3031 net/core/filter.c if (encap) { encap 3058 net/core/filter.c if (encap) { encap 102 net/core/lwtunnel.c struct nlattr *encap, unsigned int family, encap 112 net/core/lwtunnel.c NL_SET_ERR_MSG_ATTR(extack, encap, encap 125 net/core/lwtunnel.c ret = ops->build_state(encap, family, cfg, lws, extack); encap 132 net/core/lwtunnel.c NL_SET_ERR_MSG_ATTR(extack, encap, encap 1300 net/ipv4/af_inet.c bool udpfrag = false, fixedid = false, gso_partial, encap; encap 1328 net/ipv4/af_inet.c encap = SKB_GSO_CB(skb)->encap_level > 0; encap 1329 net/ipv4/af_inet.c if (encap) encap 1337 net/ipv4/af_inet.c if (!skb->encapsulation || encap) { encap 1383 net/ipv4/af_inet.c if (encap) encap 482 net/ipv4/ah4.c if (x->encap) encap 234 net/ipv4/esp4.c struct xfrm_encap_tmpl *encap = x->encap; encap 239 net/ipv4/esp4.c sport = encap->encap_sport; encap 240 net/ipv4/esp4.c dport = encap->encap_dport; encap 241 net/ipv4/esp4.c encap_type = encap->encap_type; encap 283 net/ipv4/esp4.c if (x->encap) { encap 601 net/ipv4/esp4.c if (x->encap) { encap 602 net/ipv4/esp4.c struct xfrm_encap_tmpl *encap = x->encap; encap 612 net/ipv4/esp4.c uh->source != encap->encap_sport) { encap 978 net/ipv4/esp4.c if (x->encap) { encap 979 net/ipv4/esp4.c struct xfrm_encap_tmpl *encap = x->encap; encap 981 net/ipv4/esp4.c switch (encap->encap_type) { encap 137 net/ipv4/esp4_offload.c switch (x->outer_mode.encap) { encap 300 net/ipv4/esp4_offload.c .encap = esp4_gso_encap, encap 566 net/ipv4/fib_semantics.c int fib_nh_common_init(struct fib_nh_common *nhc, struct nlattr *encap, encap 577 net/ipv4/fib_semantics.c if (encap) { encap 585 net/ipv4/fib_semantics.c err = lwtunnel_build_state(encap_type, encap, nhc->nhc_family, encap 811 net/ipv4/fib_semantics.c struct nlattr *encap, encap 822 net/ipv4/fib_semantics.c ret = lwtunnel_build_state(encap_type, encap, AF_INET, encap 732 net/ipv4/ip_gre.c tunnel->encap.type == TUNNEL_ENCAP_NONE) { encap 939 net/ipv4/ip_gre.c (tunnel->encap.type == TUNNEL_ENCAP_NONE)) { encap 1490 net/ipv4/ip_gre.c t->encap.type) || encap 1492 net/ipv4/ip_gre.c t->encap.sport) || encap 1494 net/ipv4/ip_gre.c t->encap.dport) || encap 1496 net/ipv4/ip_gre.c t->encap.flags)) encap 467 net/ipv4/ip_tunnel.c memset(&t->encap, 0, sizeof(t->encap)); encap 473 net/ipv4/ip_tunnel.c t->encap.type = ipencap->type; encap 474 net/ipv4/ip_tunnel.c t->encap.sport = ipencap->sport; encap 475 net/ipv4/ip_tunnel.c t->encap.dport = ipencap->dport; encap 476 net/ipv4/ip_tunnel.c t->encap.flags = ipencap->flags; encap 574 net/ipv4/ip_tunnel.c if (tunnel->encap.type != TUNNEL_ENCAP_NONE) encap 803 net/ipv4/ip_tunnel.c + rt->dst.header_len + ip_encap_hlen(&tunnel->encap); encap 591 net/ipv4/ipip.c tunnel->encap.type) || encap 593 net/ipv4/ipip.c tunnel->encap.sport) || encap 595 net/ipv4/ipip.c tunnel->encap.dport) || encap 597 net/ipv4/ipip.c tunnel->encap.flags)) encap 605 net/ipv4/ipmr.c struct iphdr *encap; encap 607 net/ipv4/ipmr.c encap = (struct iphdr *)(skb_transport_header(skb) + pimlen); encap 613 net/ipv4/ipmr.c if (!ipv4_is_multicast(encap->daddr) || encap 614 net/ipv4/ipmr.c encap->tot_len == 0 || encap 615 net/ipv4/ipmr.c ntohs(encap->tot_len) + pimlen > skb->len) encap 627 net/ipv4/ipmr.c skb_pull(skb, (u8 *)encap - skb->data); encap 1846 net/ipv4/ipmr.c int encap = 0; encap 1871 net/ipv4/ipmr.c encap = sizeof(struct iphdr); encap 1883 net/ipv4/ipmr.c if (skb->len+encap > dst_mtu(&rt->dst) && (ntohs(iph->frag_off) & IP_DF)) { encap 1893 net/ipv4/ipmr.c encap += LL_RESERVED_SPACE(dev) + rt->dst.header_len; encap 1895 net/ipv4/ipmr.c if (skb_cow(skb, encap)) { encap 552 net/ipv4/udp.c const struct ip_tunnel_encap_ops *encap; encap 554 net/ipv4/udp.c encap = rcu_dereference(iptun_encaps[i]); encap 555 net/ipv4/udp.c if (!encap) encap 557 net/ipv4/udp.c handler = encap->err_handler; encap 32 net/ipv4/xfrm4_tunnel.c if (x->encap) encap 680 net/ipv6/ah6.c if (x->encap) encap 855 net/ipv6/esp6.c if (x->encap) encap 128 net/ipv6/esp6_offload.c if (x->outer_mode.encap == XFRM_MODE_TRANSPORT) { encap 171 net/ipv6/esp6_offload.c switch (x->outer_mode.encap) { encap 331 net/ipv6/esp6_offload.c .encap = esp6_gso_encap, encap 1425 net/ipv6/ip6_gre.c nt->encap.type == TUNNEL_ENCAP_NONE) { encap 2145 net/ipv6/ip6_gre.c t->encap.type) || encap 2147 net/ipv6/ip6_gre.c t->encap.sport) || encap 2149 net/ipv6/ip6_gre.c t->encap.dport) || encap 2151 net/ipv6/ip6_gre.c t->encap.flags)) encap 82 net/ipv6/ip6_offload.c bool encap, udpfrag; encap 91 net/ipv6/ip6_offload.c encap = SKB_GSO_CB(skb)->encap_level > 0; encap 92 net/ipv6/ip6_offload.c if (encap) encap 104 net/ipv6/ip6_offload.c udpfrag = proto == IPPROTO_UDP && encap && encap 146 net/ipv6/ip6_offload.c if (encap) encap 1175 net/ipv6/ip6_tunnel.c if (t->encap.type != TUNNEL_ENCAP_NONE) encap 1755 net/ipv6/ip6_tunnel.c memset(&t->encap, 0, sizeof(t->encap)); encap 1761 net/ipv6/ip6_tunnel.c t->encap.type = ipencap->type; encap 1762 net/ipv6/ip6_tunnel.c t->encap.sport = ipencap->sport; encap 1763 net/ipv6/ip6_tunnel.c t->encap.dport = ipencap->dport; encap 1764 net/ipv6/ip6_tunnel.c t->encap.flags = ipencap->flags; encap 2122 net/ipv6/ip6_tunnel.c if (nla_put_u16(skb, IFLA_IPTUN_ENCAP_TYPE, tunnel->encap.type) || encap 2123 net/ipv6/ip6_tunnel.c nla_put_be16(skb, IFLA_IPTUN_ENCAP_SPORT, tunnel->encap.sport) || encap 2124 net/ipv6/ip6_tunnel.c nla_put_be16(skb, IFLA_IPTUN_ENCAP_DPORT, tunnel->encap.dport) || encap 2125 net/ipv6/ip6_tunnel.c nla_put_u16(skb, IFLA_IPTUN_ENCAP_FLAGS, tunnel->encap.flags)) encap 520 net/ipv6/ip6mr.c struct ipv6hdr *encap; encap 530 net/ipv6/ip6mr.c if (!pskb_may_pull(skb, sizeof(*pim) + sizeof(*encap))) encap 543 net/ipv6/ip6mr.c encap = (struct ipv6hdr *)(skb_transport_header(skb) + encap 546 net/ipv6/ip6mr.c if (!ipv6_addr_is_multicast(&encap->daddr) || encap 547 net/ipv6/ip6mr.c encap->payload_len == 0 || encap 548 net/ipv6/ip6mr.c ntohs(encap->payload_len) + sizeof(*pim) > skb->len) encap 566 net/ipv6/ip6mr.c skb_pull(skb, (u8 *)encap - skb->data); encap 1729 net/ipv6/sit.c tunnel->encap.type) || encap 1731 net/ipv6/sit.c tunnel->encap.sport) || encap 1733 net/ipv6/sit.c tunnel->encap.dport) || encap 1735 net/ipv6/sit.c tunnel->encap.flags)) encap 418 net/ipv6/udp.c const struct ip6_tnl_encap_ops *encap; encap 420 net/ipv6/udp.c encap = rcu_dereference(ip6tun_encaps[i]); encap 421 net/ipv6/udp.c if (!encap) encap 423 net/ipv6/udp.c handler = encap->err_handler; encap 278 net/ipv6/xfrm6_tunnel.c if (x->encap) encap 820 net/key/af_key.c if (x->encap) encap 821 net/key/af_key.c natt = x->encap; encap 1268 net/key/af_key.c x->encap = kmalloc(sizeof(*x->encap), GFP_KERNEL); encap 1269 net/key/af_key.c if (!x->encap) { encap 1274 net/key/af_key.c natt = x->encap; encap 3347 net/key/af_key.c if (!x->encap) encap 3350 net/key/af_key.c natt = x->encap; encap 3526 net/key/af_key.c const struct xfrm_encap_tmpl *encap) encap 3637 net/key/af_key.c const struct xfrm_encap_tmpl *encap) encap 330 net/l2tp/l2tp_core.c (session_walk->tunnel->encap == L2TP_ENCAPTYPE_IP || encap 331 net/l2tp/l2tp_core.c tunnel->encap == L2TP_ENCAPTYPE_IP)) { encap 974 net/l2tp/l2tp_core.c if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { encap 1023 net/l2tp/l2tp_core.c int uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(struct udphdr) : 0; encap 1064 net/l2tp/l2tp_core.c int uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(struct udphdr) : 0; encap 1110 net/l2tp/l2tp_core.c switch (tunnel->encap) { encap 1163 net/l2tp/l2tp_core.c switch (tunnel->encap) { encap 1301 net/l2tp/l2tp_core.c switch (cfg->encap) { encap 1411 net/l2tp/l2tp_core.c enum l2tp_encap_type encap = L2TP_ENCAPTYPE_UDP; encap 1414 net/l2tp/l2tp_core.c encap = cfg->encap; encap 1435 net/l2tp/l2tp_core.c tunnel->encap = encap; encap 1455 net/l2tp/l2tp_core.c enum l2tp_encap_type encap) encap 1466 net/l2tp/l2tp_core.c if ((encap == L2TP_ENCAPTYPE_UDP && sk->sk_protocol != IPPROTO_UDP) || encap 1467 net/l2tp/l2tp_core.c (encap == L2TP_ENCAPTYPE_IP && sk->sk_protocol != IPPROTO_L2TP)) encap 1496 net/l2tp/l2tp_core.c ret = l2tp_validate_socket(sock->sk, net, tunnel->encap); encap 1520 net/l2tp/l2tp_core.c if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { encap 1641 net/l2tp/l2tp_core.c if (session->tunnel->encap == L2TP_ENCAPTYPE_UDP) encap 128 net/l2tp/l2tp_core.h enum l2tp_encap_type encap; encap 165 net/l2tp/l2tp_core.h enum l2tp_encap_type encap; encap 156 net/l2tp/l2tp_debugfs.c if (tunnel->encap == L2TP_ENCAPTYPE_UDP) encap 161 net/l2tp/l2tp_debugfs.c tunnel->encap == L2TP_ENCAPTYPE_UDP ? "UDP" : encap 162 net/l2tp/l2tp_debugfs.c tunnel->encap == L2TP_ENCAPTYPE_IP ? "IP" : encap 226 net/l2tp/l2tp_eth.c if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { encap 193 net/l2tp/l2tp_netlink.c cfg.encap = nla_get_u16(info->attrs[L2TP_ATTR_ENCAP_TYPE]); encap 237 net/l2tp/l2tp_netlink.c switch (cfg.encap) { encap 342 net/l2tp/l2tp_netlink.c nla_put_u16(skb, L2TP_ATTR_ENCAP_TYPE, tunnel->encap)) encap 387 net/l2tp/l2tp_netlink.c switch (tunnel->encap) { encap 294 net/l2tp/l2tp_ppp.c uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(struct udphdr) : 0; encap 369 net/l2tp/l2tp_ppp.c uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(struct udphdr) : 0; encap 709 net/l2tp/l2tp_ppp.c .encap = L2TP_ENCAPTYPE_UDP, encap 1069 net/openvswitch/flow_netlink.c const struct nlattr *encap; encap 1088 net/openvswitch/flow_netlink.c encap = a[OVS_KEY_ATTR_ENCAP]; encap 1091 net/openvswitch/flow_netlink.c err = parse_flow_nlattrs(encap, a, key_attrs, log); encap 1093 net/openvswitch/flow_netlink.c err = parse_flow_mask_nlattrs(encap, a, key_attrs, log); encap 1976 net/openvswitch/flow_netlink.c struct nlattr *encap = NULL; encap 2030 net/openvswitch/flow_netlink.c encap = nla_nest_start_noflag(skb, OVS_KEY_ATTR_ENCAP); encap 2066 net/openvswitch/flow_netlink.c WARN_ON_ONCE(!(encap && in_encap)); encap 2201 net/openvswitch/flow_netlink.c if (encap) encap 2202 net/openvswitch/flow_netlink.c nla_nest_end(skb, encap); encap 842 net/sched/cls_flower.c static void fl_set_key_ip(struct nlattr **tb, bool encap, encap 846 net/sched/cls_flower.c int tos_key = encap ? TCA_FLOWER_KEY_ENC_IP_TOS : TCA_FLOWER_KEY_IP_TOS; encap 847 net/sched/cls_flower.c int ttl_key = encap ? TCA_FLOWER_KEY_ENC_IP_TTL : TCA_FLOWER_KEY_IP_TTL; encap 848 net/sched/cls_flower.c int tos_mask = encap ? TCA_FLOWER_KEY_ENC_IP_TOS_MASK : TCA_FLOWER_KEY_IP_TOS_MASK; encap 849 net/sched/cls_flower.c int ttl_mask = encap ? TCA_FLOWER_KEY_ENC_IP_TTL_MASK : TCA_FLOWER_KEY_IP_TTL_MASK; encap 2041 net/sched/cls_flower.c static int fl_dump_key_ip(struct sk_buff *skb, bool encap, encap 2045 net/sched/cls_flower.c int tos_key = encap ? TCA_FLOWER_KEY_ENC_IP_TOS : TCA_FLOWER_KEY_IP_TOS; encap 2046 net/sched/cls_flower.c int ttl_key = encap ? TCA_FLOWER_KEY_ENC_IP_TTL : TCA_FLOWER_KEY_IP_TTL; encap 2047 net/sched/cls_flower.c int tos_mask = encap ? TCA_FLOWER_KEY_ENC_IP_TOS_MASK : TCA_FLOWER_KEY_IP_TOS_MASK; encap 2048 net/sched/cls_flower.c int ttl_mask = encap ? TCA_FLOWER_KEY_ENC_IP_TTL_MASK : TCA_FLOWER_KEY_IP_TTL_MASK; encap 50 net/xfrm/xfrm_device.c switch (x->outer_mode.encap) { encap 204 net/xfrm/xfrm_device.c if (x->encap || x->tfcpad) encap 268 net/xfrm/xfrm_device.c if (!x->type_offload || x->encap) encap 333 net/xfrm/xfrm_input.c switch (inner_mode->encap) { encap 434 net/xfrm/xfrm_input.c switch (inner_mode->encap) { encap 606 net/xfrm/xfrm_input.c if ((x->encap ? x->encap->encap_type : 0) != encap_type) { encap 347 net/xfrm/xfrm_ipcomp.c if (x->encap) encap 333 net/xfrm/xfrm_output.c switch (x->outer_mode.encap) { encap 356 net/xfrm/xfrm_output.c switch (x->outer_mode.encap) { encap 372 net/xfrm/xfrm_output.c switch (x->outer_mode.encap) { encap 464 net/xfrm/xfrm_output.c x->type_offload->encap(x, skb); encap 4386 net/xfrm/xfrm_policy.c struct xfrm_encap_tmpl *encap) encap 4415 net/xfrm/xfrm_policy.c xc = xfrm_state_migrate(x, mp, encap); encap 4437 net/xfrm/xfrm_policy.c km_migrate(sel, dir, type, m, num_migrate, k, encap); encap 413 net/xfrm/xfrm_state.c .encap = XFRM_MODE_BEET, encap 418 net/xfrm/xfrm_state.c .encap = XFRM_MODE_TRANSPORT, encap 422 net/xfrm/xfrm_state.c .encap = XFRM_MODE_TUNNEL, encap 430 net/xfrm/xfrm_state.c .encap = XFRM_MODE_BEET, encap 435 net/xfrm/xfrm_state.c .encap = XFRM_MODE_ROUTEOPTIMIZATION, encap 439 net/xfrm/xfrm_state.c .encap = XFRM_MODE_TRANSPORT, encap 443 net/xfrm/xfrm_state.c .encap = XFRM_MODE_TUNNEL, encap 449 net/xfrm/xfrm_state.c static const struct xfrm_mode *xfrm_get_mode(unsigned int encap, int family) encap 453 net/xfrm/xfrm_state.c if (unlikely(encap >= XFRM_MODE_MAX)) encap 458 net/xfrm/xfrm_state.c mode = &xfrm4_mode_map[encap]; encap 463 net/xfrm/xfrm_state.c mode = &xfrm6_mode_map[encap]; encap 488 net/xfrm/xfrm_state.c kfree(x->encap); encap 1442 net/xfrm/xfrm_state.c struct xfrm_encap_tmpl *encap) encap 1485 net/xfrm/xfrm_state.c if (encap || orig->encap) { encap 1486 net/xfrm/xfrm_state.c if (encap) encap 1487 net/xfrm/xfrm_state.c x->encap = kmemdup(encap, sizeof(*x->encap), encap 1490 net/xfrm/xfrm_state.c x->encap = kmemdup(orig->encap, sizeof(*x->encap), encap 1493 net/xfrm/xfrm_state.c if (!x->encap) encap 1584 net/xfrm/xfrm_state.c struct xfrm_encap_tmpl *encap) encap 1588 net/xfrm/xfrm_state.c xc = xfrm_state_clone(x, encap); encap 1659 net/xfrm/xfrm_state.c if (x->encap && x1->encap && encap 1660 net/xfrm/xfrm_state.c x->encap->encap_type == x1->encap->encap_type) encap 1661 net/xfrm/xfrm_state.c memcpy(x1->encap, x->encap, sizeof(*x1->encap)); encap 1662 net/xfrm/xfrm_state.c else if (x->encap || x1->encap) encap 2207 net/xfrm/xfrm_state.c const struct xfrm_encap_tmpl *encap) encap 2217 net/xfrm/xfrm_state.c encap); encap 604 net/xfrm/xfrm_user.c x->encap = kmemdup(nla_data(attrs[XFRMA_ENCAP]), encap 605 net/xfrm/xfrm_user.c sizeof(*x->encap), GFP_KERNEL); encap 606 net/xfrm/xfrm_user.c if (x->encap == NULL) encap 931 net/xfrm/xfrm_user.c if (x->encap) { encap 932 net/xfrm/xfrm_user.c ret = nla_put(skb, XFRMA_ENCAP, sizeof(*x->encap), x->encap); encap 2372 net/xfrm/xfrm_user.c struct xfrm_encap_tmpl *encap = NULL; encap 2391 net/xfrm/xfrm_user.c encap = kmemdup(nla_data(attrs[XFRMA_ENCAP]), encap 2392 net/xfrm/xfrm_user.c sizeof(*encap), GFP_KERNEL); encap 2393 net/xfrm/xfrm_user.c if (!encap) encap 2397 net/xfrm/xfrm_user.c err = xfrm_migrate(&pi->sel, pi->dir, type, m, n, kmp, net, encap); encap 2399 net/xfrm/xfrm_user.c kfree(encap); encap 2456 net/xfrm/xfrm_user.c const struct xfrm_encap_tmpl *encap, u8 dir, u8 type) encap 2478 net/xfrm/xfrm_user.c if (encap) { encap 2479 net/xfrm/xfrm_user.c err = nla_put(skb, XFRMA_ENCAP, sizeof(*encap), encap); encap 2503 net/xfrm/xfrm_user.c const struct xfrm_encap_tmpl *encap) encap 2509 net/xfrm/xfrm_user.c skb = nlmsg_new(xfrm_migrate_msgsize(num_migrate, !!k, !!encap), encap 2515 net/xfrm/xfrm_user.c err = build_migrate(skb, m, num_migrate, k, sel, encap, dir, type); encap 2524 net/xfrm/xfrm_user.c const struct xfrm_encap_tmpl *encap) encap 2799 net/xfrm/xfrm_user.c if (x->encap) encap 2800 net/xfrm/xfrm_user.c l += nla_total_size(sizeof(*x->encap)); encap 3285 net/xfrm/xfrm_user.c um->old_sport = x->encap->encap_sport; encap 3302 net/xfrm/xfrm_user.c if (!x->encap)