/linux-4.4.14/include/uapi/linux/netfilter_bridge/ |
H A D | ebt_vlan.h | 15 __be16 encap; /* VLAN Encapsulated frame code {0-65535} */ member in struct:ebt_vlan_info 17 bit 2=1 User-Priority arg, bit 3=1 encap*/
|
/linux-4.4.14/net/bridge/netfilter/ |
H A D | ebt_vlan.c | 46 __be16 encap; ebt_vlan_mt() local 50 encap = skb->protocol; ebt_vlan_mt() 60 encap = fp->h_vlan_encapsulated_proto; ebt_vlan_mt() 83 EXIT_ON_MISMATCH(encap, EBT_VLAN_ENCAP); ebt_vlan_mt() 148 if ((unsigned short) ntohs(info->encap) < ETH_ZLEN) { ebt_vlan_mt_check() 149 pr_debug("encap frame length %d is less than " ebt_vlan_mt_check() 150 "minimal\n", ntohs(info->encap)); ebt_vlan_mt_check()
|
/linux-4.4.14/include/net/ |
H A D | lwtunnel.h | 28 int (*build_state)(struct net_device *dev, struct nlattr *encap, 83 struct nlattr *encap, 134 struct nlattr *encap, lwtunnel_build_state() 133 lwtunnel_build_state(struct net_device *dev, u16 encap_type, struct nlattr *encap, unsigned int family, const void *cfg, struct lwtunnel_state **lws) lwtunnel_build_state() argument
|
H A D | atmclip.h | 26 unsigned char encap; /* 0: NULL, 1: LLC/SNAP */ member in struct:clip_vcc
|
H A D | ip_tunnels.h | 116 struct ip_tunnel_encap encap; member in struct:ip_tunnel
|
H A D | xfrm.h | 41 #define MODULE_ALIAS_XFRM_MODE(family, encap) \ 42 MODULE_ALIAS("xfrm-mode-" __stringify(family) "-" __stringify(encap)) 174 struct xfrm_encap_tmpl *encap; member in struct:xfrm_state 438 unsigned int encap; member in struct:xfrm_mode
|
/linux-4.4.14/drivers/isdn/i4l/ |
H A D | isdn_concap.c | 92 struct concap_proto *isdn_concap_new(int encap) isdn_concap_new() argument 94 switch (encap) { isdn_concap_new()
|
H A D | isdn_net.c | 432 failed. If there are generic encap protocol isdn_net_stat_callback() 459 /* try if there are generic encap protocol isdn_net_stat_callback() 854 /* try if there are generic encap protocol isdn_net_hangup() 2668 printk(KERN_WARNING "%s: cannot change encap when if is up\n", isdn_net_setcfg()
|
/linux-4.4.14/net/ipv4/ |
H A D | esp4.c | 207 if (x->encap) { esp_output() 208 struct xfrm_encap_tmpl *encap = x->encap; esp_output() local 215 sport = encap->encap_sport; esp_output() 216 dport = encap->encap_dport; esp_output() 217 encap_type = encap->encap_type; esp_output() 325 if (x->encap) { esp_input_done2() 326 struct xfrm_encap_tmpl *encap = x->encap; esp_input_done2() local 336 uh->source != encap->encap_sport) { esp_input_done2() 701 if (x->encap) { esp_init_state() 702 struct xfrm_encap_tmpl *encap = x->encap; esp_init_state() local 704 switch (encap->encap_type) { esp_init_state()
|
H A D | xfrm4_mode_transport.c | 61 .encap = XFRM_MODE_TRANSPORT,
|
H A D | xfrm4_mode_tunnel.c | 105 .encap = XFRM_MODE_TUNNEL,
|
H A D | xfrm4_tunnel.c | 31 if (x->encap) ipip_init_state()
|
H A D | ip_tunnel.c | 559 memset(&t->encap, 0, sizeof(t->encap)); ip_tunnel_encap_setup() 565 t->encap.type = ipencap->type; ip_tunnel_encap_setup() 566 t->encap.sport = ipencap->sport; ip_tunnel_encap_setup() 567 t->encap.dport = ipencap->dport; ip_tunnel_encap_setup() 568 t->encap.flags = ipencap->flags; ip_tunnel_encap_setup() 583 if (t->encap.type == TUNNEL_ENCAP_NONE) ip_tunnel_encap() 586 if (t->encap.type >= MAX_IPTUN_ENCAP_OPS) ip_tunnel_encap() 590 ops = rcu_dereference(iptun_encaps[t->encap.type]); ip_tunnel_encap() 592 ret = ops->build_header(skb, &t->encap, protocol, fl4); ip_tunnel_encap() 788 + rt->dst.header_len + ip_encap_hlen(&tunnel->encap); ip_tunnel_xmit()
|
H A D | ipip.c | 460 tunnel->encap.type) || ipip_fill_info() 462 tunnel->encap.sport) || ipip_fill_info() 464 tunnel->encap.dport) || ipip_fill_info() 466 tunnel->encap.flags)) ipip_fill_info()
|
H A D | xfrm4_mode_beet.c | 136 .encap = XFRM_MODE_BEET,
|
H A D | ipmr.c | 1700 int encap = 0; ipmr_queue_xmit() local 1724 encap = sizeof(struct iphdr); ipmr_queue_xmit() 1736 if (skb->len+encap > dst_mtu(&rt->dst) && (ntohs(iph->frag_off) & IP_DF)) { ipmr_queue_xmit() 1747 encap += LL_RESERVED_SPACE(dev) + rt->dst.header_len; ipmr_queue_xmit() 1749 if (skb_cow(skb, encap)) { ipmr_queue_xmit() 2051 struct iphdr *encap; __pim_rcv() local 2053 encap = (struct iphdr *)(skb_transport_header(skb) + pimlen); __pim_rcv() 2060 if (!ipv4_is_multicast(encap->daddr) || __pim_rcv() 2061 encap->tot_len == 0 || __pim_rcv() 2062 ntohs(encap->tot_len) + pimlen > skb->len) __pim_rcv() 2074 skb_pull(skb, (u8 *)encap - skb->data); __pim_rcv()
|
H A D | ip_gre.c | 1160 t->encap.type) || ipgre_fill_info() 1162 t->encap.sport) || ipgre_fill_info() 1164 t->encap.dport) || ipgre_fill_info() 1166 t->encap.flags)) ipgre_fill_info()
|
H A D | af_inet.c | 1203 bool udpfrag, encap; inet_gso_segment() local 1244 encap = SKB_GSO_CB(skb)->encap_level > 0; inet_gso_segment() 1245 if (encap) inet_gso_segment() 1255 udpfrag = proto == IPPROTO_UDP && encap; inet_gso_segment() 1280 if (encap) inet_gso_segment()
|
H A D | fib_semantics.c | 380 /* grab encap info */ for_nexthops() 597 struct nlattr *encap, fib_encap_match() 610 ret = lwtunnel_build_state(dev, encap_type, encap, fib_encap_match() 596 fib_encap_match(struct net *net, u16 encap_type, struct nlattr *encap, int oif, const struct fib_nh *nh, const struct fib_config *cfg) fib_encap_match() argument
|
H A D | ah4.c | 473 if (x->encap) ah_init_state()
|
H A D | udp.c | 1500 * >0: "udp encap" protocol resubmission 1526 * =0 if skb was successfully passed to the encap udp_queue_rcv_skb() 1537 /* Verify checksum before giving to encap */ udp_queue_rcv_skb()
|
/linux-4.4.14/net/ipv6/ |
H A D | ip6_offload.c | 68 bool encap, udpfrag; ipv6_gso_segment() local 92 encap = SKB_GSO_CB(skb)->encap_level > 0; ipv6_gso_segment() 93 if (encap) ipv6_gso_segment() 105 udpfrag = proto == IPPROTO_UDP && encap; ipv6_gso_segment() 132 if (encap) ipv6_gso_segment()
|
H A D | xfrm6_mode_transport.c | 66 .encap = XFRM_MODE_TRANSPORT,
|
H A D | xfrm6_mode_ro.c | 64 .encap = XFRM_MODE_ROUTEOPTIMIZATION,
|
H A D | xfrm6_mode_tunnel.c | 105 .encap = XFRM_MODE_TUNNEL,
|
H A D | xfrm6_mode_beet.c | 111 .encap = XFRM_MODE_BEET,
|
H A D | syncookies.c | 35 * one that accounts for common encap (PPPoe) overhead. Table must be sorted.
|
H A D | xfrm6_tunnel.c | 288 if (x->encap) xfrm6_tunnel_init_state()
|
H A D | ip6mr.c | 625 struct ipv6hdr *encap; pim6_rcv() local 635 if (!pskb_may_pull(skb, sizeof(*pim) + sizeof(*encap))) pim6_rcv() 648 encap = (struct ipv6hdr *)(skb_transport_header(skb) + pim6_rcv() 651 if (!ipv6_addr_is_multicast(&encap->daddr) || pim6_rcv() 652 encap->payload_len == 0 || pim6_rcv() 653 ntohs(encap->payload_len) + sizeof(*pim) > skb->len) pim6_rcv() 671 skb_pull(skb, (u8 *)encap - skb->data); pim6_rcv()
|
H A D | sit.c | 1693 tunnel->encap.type) || ipip6_fill_info() 1695 tunnel->encap.sport) || ipip6_fill_info() 1697 tunnel->encap.dport) || ipip6_fill_info() 1699 tunnel->encap.flags)) ipip6_fill_info()
|
H A D | esp6.c | 625 if (x->encap) esp6_init_state()
|
H A D | ah6.c | 682 if (x->encap) ah6_init_state()
|
H A D | udp.c | 642 * =0 if skb was successfully passed to the encap udpv6_queue_rcv_skb() 653 /* Verify checksum before giving to encap */ udpv6_queue_rcv_skb()
|
/linux-4.4.14/net/core/ |
H A D | lwtunnel.c | 75 struct nlattr *encap, unsigned int family, lwtunnel_build_state() 89 ret = ops->build_state(dev, encap, family, cfg, lws); lwtunnel_build_state() 74 lwtunnel_build_state(struct net_device *dev, u16 encap_type, struct nlattr *encap, unsigned int family, const void *cfg, struct lwtunnel_state **lws) lwtunnel_build_state() argument
|
/linux-4.4.14/drivers/crypto/caam/ |
H A D | pdb.h | 44 #define PDBOPTS_ESP_IPHDRSRC 0x08 /* IP header comes from PDB (encap) */ 51 #define PDBOPTS_ESP_UPDATE_CSUM 0x80 /* encap-update ip header checksum */ 55 * General IPSec encap/decap PDB definitions
|
/linux-4.4.14/net/xfrm/ |
H A D | xfrm_input.c | 267 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { xfrm_input() 315 /* only the first xfrm gets the encap type */ xfrm_input()
|
H A D | xfrm_state.c | 242 if (unlikely(mode->encap >= XFRM_MODE_MAX)) xfrm_register_mode() 252 if (modemap[mode->encap]) xfrm_register_mode() 260 modemap[mode->encap] = mode; xfrm_register_mode() 276 if (unlikely(mode->encap >= XFRM_MODE_MAX)) xfrm_unregister_mode() 286 if (likely(modemap[mode->encap] == mode)) { xfrm_unregister_mode() 287 modemap[mode->encap] = NULL; xfrm_unregister_mode() 298 static struct xfrm_mode *xfrm_get_mode(unsigned int encap, int family) xfrm_get_mode() argument 304 if (unlikely(encap >= XFRM_MODE_MAX)) xfrm_get_mode() 312 mode = afinfo->mode_map[encap]; xfrm_get_mode() 317 request_module("xfrm-mode-%d-%d", family, encap); xfrm_get_mode() 338 kfree(x->encap); xfrm_state_gc_destroy() 1179 if (orig->encap) { xfrm_state_clone() 1180 x->encap = kmemdup(orig->encap, sizeof(*x->encap), GFP_KERNEL); xfrm_state_clone() 1181 if (!x->encap) xfrm_state_clone() 1343 if (x->encap && x1->encap) xfrm_state_update() 1344 memcpy(x1->encap, x->encap, sizeof(*x1->encap)); xfrm_state_update()
|
H A D | xfrm_ipcomp.c | 351 if (x->encap) ipcomp_init_state()
|
H A D | xfrm_user.c | 562 x->encap = kmemdup(nla_data(attrs[XFRMA_ENCAP]), xfrm_state_construct() 563 sizeof(*x->encap), GFP_KERNEL); xfrm_state_construct() 564 if (x->encap == NULL) xfrm_state_construct() 839 if (x->encap) { copy_to_user_state_extra() 840 ret = nla_put(skb, XFRMA_ENCAP, sizeof(*x->encap), x->encap); copy_to_user_state_extra() 2603 if (x->encap) xfrm_sa_len() 2604 l += nla_total_size(sizeof(*x->encap)); xfrm_sa_len() 3069 um->old_sport = x->encap->encap_sport; build_mapping() 3085 if (!x->encap) xfrm_send_mapping()
|
/linux-4.4.14/net/l2tp/ |
H A D | l2tp_debugfs.c | 138 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) l2tp_dfs_seq_tunnel_show() 143 tunnel->encap == L2TP_ENCAPTYPE_UDP ? "UDP" : l2tp_dfs_seq_tunnel_show() 144 tunnel->encap == L2TP_ENCAPTYPE_IP ? "IP" : l2tp_dfs_seq_tunnel_show()
|
H A D | l2tp_core.c | 1016 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { l2tp_build_l2tpv3_header() 1068 int uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(struct udphdr) : 0; l2tp_xmit_core() 1111 int uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(struct udphdr) : 0; l2tp_xmit_skb() 1148 switch (tunnel->encap) { l2tp_xmit_skb() 1203 switch (tunnel->encap) { l2tp_tunnel_destruct() 1367 switch (cfg->encap) { l2tp_tunnel_sock_create() 1480 enum l2tp_encap_type encap = L2TP_ENCAPTYPE_UDP; l2tp_tunnel_create() local 1511 encap = cfg->encap; l2tp_tunnel_create() 1514 switch (encap) { l2tp_tunnel_create() 1582 tunnel->encap = encap; l2tp_tunnel_create() 1583 if (encap == L2TP_ENCAPTYPE_UDP) { l2tp_tunnel_create() 1729 if (session->tunnel->encap == L2TP_ENCAPTYPE_UDP) l2tp_session_set_header_len()
|
H A D | l2tp_netlink.c | 201 cfg.encap = nla_get_u16(info->attrs[L2TP_ATTR_ENCAP_TYPE]); l2tp_nl_cmd_tunnel_create() 251 switch (cfg.encap) { l2tp_nl_cmd_tunnel_create() 342 nla_put_u16(skb, L2TP_ATTR_ENCAP_TYPE, tunnel->encap)) l2tp_nl_tunnel_send() 379 switch (tunnel->encap) { l2tp_nl_tunnel_send()
|
H A D | l2tp_core.h | 154 enum l2tp_encap_type encap; member in struct:l2tp_tunnel_cfg 184 enum l2tp_encap_type encap; member in struct:l2tp_tunnel
|
H A D | l2tp_ppp.c | 324 uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(struct udphdr) : 0; pppol2tp_sendmsg() 411 uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(struct udphdr) : 0; pppol2tp_xmit() 679 .encap = L2TP_ENCAPTYPE_UDP, pppol2tp_connect()
|
/linux-4.4.14/include/uapi/linux/ |
H A D | if_arcnet.h | 76 * The ethernet-encap-specific components. We have a real ethernet header
|
H A D | mroute6.h | 132 #define MRT6MSG_WHOLEPKT 3 /* used for use level encap */
|
/linux-4.4.14/net/atm/ |
H A D | clip.c | 218 if (!clip_vcc->encap || clip_push() 323 CLIP_VCC(vcc)->encap = mode; clip_encap() 377 if (entry->vccs->encap) { clip_start_xmit() 430 clip_vcc->encap = 1; clip_mkip() 747 llc = ((clip_vcc == SEQ_NO_VCC_TOKEN) || clip_vcc->encap); atmarp_info()
|
H A D | proc.c | 178 seq_printf(seq, "%s", clip_vcc->encap ? "LLC/SNAP" : "None"); pvc_info()
|
/linux-4.4.14/net/openvswitch/ |
H A D | flow_netlink.c | 1184 const struct nlattr *encap; ovs_nla_get_match() local 1208 encap = a[OVS_KEY_ATTR_ENCAP]; ovs_nla_get_match() 1213 err = parse_flow_nlattrs(encap, a, &key_attrs, log); ovs_nla_get_match() 1218 if (nla_len(encap)) { ovs_nla_get_match() 1219 OVS_NLERR(log, "Truncated 802.1Q header has non-zero encap attribute."); ovs_nla_get_match() 1285 encap = a[OVS_KEY_ATTR_ENCAP]; ovs_nla_get_match() 1286 err = parse_flow_mask_nlattrs(encap, a, ovs_nla_get_match() 1417 struct nlattr *nla, *encap; __ovs_nla_put_key() local 1472 encap = nla_nest_start(skb, OVS_KEY_ATTR_ENCAP); __ovs_nla_put_key() 1476 encap = NULL; __ovs_nla_put_key() 1621 if (encap) __ovs_nla_put_key() 1622 nla_nest_end(skb, encap); __ovs_nla_put_key()
|
/linux-4.4.14/net/netfilter/ |
H A D | xt_l2tp.c | 138 * L2TPv3 data packets have a different form with IP encap. See 149 /* For IP encap, the L2TP sid is the first 32-bits. */ l2tp_ip_mt()
|
/linux-4.4.14/drivers/net/arcnet/ |
H A D | arcdevice.h | 197 char suffix; /* a for RFC1201, e for ether-encap, etc. */ 251 uint8_t default_proto[256]; /* default encap to use for each host */
|
H A D | arcnet.c | 1050 "got protocol %02Xh; encap for host %02Xh is now '%c' (was '%c')\n", arcnet_rx() 1056 /* broadcasts will always be done with the last-used encap. */ arcnet_rx() 1080 "tx: can't build header for encap %02Xh; load a protocol driver.\n", null_build_header() 1094 arc_printk(D_PROTO, dev, "tx: no encap for this host; load a protocol driver.\n"); null_prepare_tx()
|
/linux-4.4.14/net/key/ |
H A D | af_key.c | 777 if (x->encap) __pfkey_xfrm_state2msg() 778 natt = x->encap; __pfkey_xfrm_state2msg() 1229 x->encap = kmalloc(sizeof(*x->encap), GFP_KERNEL); pfkey_msg2xfrm_state() 1230 if (!x->encap) pfkey_msg2xfrm_state() 1233 natt = x->encap; pfkey_msg2xfrm_state() 3295 if (!x->encap) pfkey_send_new_mapping() 3298 natt = x->encap; pfkey_send_new_mapping()
|
/linux-4.4.14/drivers/staging/wlan-ng/ |
H A D | p80211conv.c | 369 /* A bogus length ethfrm has been encap'd. */ skb_p80211_to_ether()
|
/linux-4.4.14/drivers/net/wireless/ath/ath10k/ |
H A D | core.h | 529 /* Use Raw mode instead of native WiFi Tx/Rx encap mode.
|
H A D | core.c | 1437 * Firmware A-MSDU aggregation breaks with RAW Tx encap mode ath10k_core_init_firmware_features()
|
/linux-4.4.14/drivers/net/wireless/orinoco/ |
H A D | main.c | 392 u8 encap[6]; /* 802.2 header */ orinoco_process_xmit_skb() member in struct:header_struct 407 memcpy(hdr.encap, encaps_hdr, sizeof(encaps_hdr)); orinoco_process_xmit_skb()
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_main.c | 851 "failed to offload encap csum!\n"); fm10k_tx_csum()
|
/linux-4.4.14/drivers/net/bonding/ |
H A D | bond_main.c | 164 "2 for layer 2+3, 3 for encap layer 2+3, " 165 "4 for encap layer 3+4");
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_main.c | 7344 u8 encap = false; ixgbe_atr() local 7374 encap = true; ixgbe_atr() 7438 if (encap) ixgbe_atr()
|
/linux-4.4.14/drivers/net/wireless/ |
H A D | ray_cs.c | 2320 pr_debug("ray_cs untranslate Bridge encap\n"); untranslate()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_txrx.c | 2016 * tx_enable_csum function if encap is enabled. i40e_atr()
|