Home
last modified time | relevance | path

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

12

/linux-3.4.99/net/bridge/netfilter/
Debt_vlan.c47 __be16 encap; in ebt_vlan_mt() local
51 encap = skb->protocol; in ebt_vlan_mt()
61 encap = fp->h_vlan_encapsulated_proto; in ebt_vlan_mt()
84 EXIT_ON_MISMATCH(encap, EBT_VLAN_ENCAP); in ebt_vlan_mt()
149 if ((unsigned short) ntohs(info->encap) < ETH_ZLEN) { in ebt_vlan_mt_check()
151 "minimal\n", ntohs(info->encap)); in ebt_vlan_mt_check()
/linux-3.4.99/net/ipv4/
Desp4.c208 if (x->encap) { in esp_output()
209 struct xfrm_encap_tmpl *encap = x->encap; in esp_output() local
216 sport = encap->encap_sport; in esp_output()
217 dport = encap->encap_dport; in esp_output()
218 encap_type = encap->encap_type; in esp_output()
310 if (x->encap) { in esp_input_done2()
311 struct xfrm_encap_tmpl *encap = x->encap; in esp_input_done2() local
321 uh->source != encap->encap_sport) { in esp_input_done2()
658 if (x->encap) { in esp_init_state()
659 struct xfrm_encap_tmpl *encap = x->encap; in esp_init_state() local
[all …]
Dxfrm4_mode_transport.c61 .encap = XFRM_MODE_TRANSPORT,
Dxfrm4_tunnel.c31 if (x->encap) in ipip_init_state()
Dxfrm4_mode_tunnel.c101 .encap = XFRM_MODE_TUNNEL,
Dipmr.c1610 int encap = 0; in ipmr_queue_xmit() local
1634 encap = sizeof(struct iphdr); in ipmr_queue_xmit()
1646 if (skb->len+encap > dst_mtu(&rt->dst) && (ntohs(iph->frag_off) & IP_DF)) { in ipmr_queue_xmit()
1657 encap += LL_RESERVED_SPACE(dev) + rt->dst.header_len; in ipmr_queue_xmit()
1659 if (skb_cow(skb, encap)) { in ipmr_queue_xmit()
1921 struct iphdr *encap; in __pim_rcv() local
1923 encap = (struct iphdr *)(skb_transport_header(skb) + pimlen); in __pim_rcv()
1930 if (!ipv4_is_multicast(encap->daddr) || in __pim_rcv()
1931 encap->tot_len == 0 || in __pim_rcv()
1932 ntohs(encap->tot_len) + pimlen > skb->len) in __pim_rcv()
[all …]
Dxfrm4_mode_beet.c136 .encap = XFRM_MODE_BEET,
/linux-3.4.99/drivers/isdn/i4l/
Disdn_concap.c92 struct concap_proto *isdn_concap_new(int encap) in isdn_concap_new() argument
94 switch (encap) { in isdn_concap_new()
/linux-3.4.99/net/l2tp/
Dl2tp_core.c922 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) { in l2tp_build_l2tpv3_header()
975 int uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(struct udphdr) : 0; in l2tp_xmit_core()
1039 int uhlen = (tunnel->encap == L2TP_ENCAPTYPE_UDP) ? sizeof(struct udphdr) : 0; in l2tp_xmit_skb()
1079 switch (tunnel->encap) { in l2tp_xmit_skb()
1150 switch (tunnel->encap) { in l2tp_tunnel_destruct()
1273 switch (cfg->encap) { in l2tp_tunnel_sock_create()
1345 enum l2tp_encap_type encap = L2TP_ENCAPTYPE_UDP; in l2tp_tunnel_create() local
1368 encap = cfg->encap; in l2tp_tunnel_create()
1371 switch (encap) { in l2tp_tunnel_create()
1421 tunnel->encap = encap; in l2tp_tunnel_create()
[all …]
Dl2tp_debugfs.c127 if (tunnel->encap == L2TP_ENCAPTYPE_UDP) in l2tp_dfs_seq_tunnel_show()
132 tunnel->encap == L2TP_ENCAPTYPE_UDP ? "UDP" : in l2tp_dfs_seq_tunnel_show()
133 tunnel->encap == L2TP_ENCAPTYPE_IP ? "IP" : in l2tp_dfs_seq_tunnel_show()
Dl2tp_core.h148 enum l2tp_encap_type encap; member
172 enum l2tp_encap_type encap; member
Dl2tp_netlink.c130 cfg.encap = nla_get_u16(info->attrs[L2TP_ATTR_ENCAP_TYPE]); in l2tp_nl_cmd_tunnel_create()
158 switch (cfg.encap) { in l2tp_nl_cmd_tunnel_create()
238 NLA_PUT_U16(skb, L2TP_ATTR_ENCAP_TYPE, tunnel->encap); in l2tp_nl_tunnel_send()
260 switch (tunnel->encap) { in l2tp_nl_tunnel_send()
/linux-3.4.99/include/linux/netfilter_bridge/
Debt_vlan.h15 __be16 encap; /* VLAN Encapsulated frame code {0-65535} */ member
/linux-3.4.99/net/xfrm/
Dxfrm_state.c265 if (unlikely(mode->encap >= XFRM_MODE_MAX)) in xfrm_register_mode()
274 if (modemap[mode->encap]) in xfrm_register_mode()
282 modemap[mode->encap] = mode; in xfrm_register_mode()
297 if (unlikely(mode->encap >= XFRM_MODE_MAX)) in xfrm_unregister_mode()
306 if (likely(modemap[mode->encap] == mode)) { in xfrm_unregister_mode()
307 modemap[mode->encap] = NULL; in xfrm_unregister_mode()
317 static struct xfrm_mode *xfrm_get_mode(unsigned int encap, int family) in xfrm_get_mode() argument
323 if (unlikely(encap >= XFRM_MODE_MAX)) in xfrm_get_mode()
331 mode = afinfo->mode_map[encap]; in xfrm_get_mode()
336 request_module("xfrm-mode-%d-%d", family, encap); in xfrm_get_mode()
[all …]
Dxfrm_input.c171 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { in xfrm_input()
/linux-3.4.99/include/net/
Datmclip.h26 unsigned char encap; /* 0: NULL, 1: LLC/SNAP */ member
/linux-3.4.99/net/ipv6/
Dxfrm6_mode_ro.c65 .encap = XFRM_MODE_ROUTEOPTIMIZATION,
Dxfrm6_mode_transport.c66 .encap = XFRM_MODE_TRANSPORT,
Dxfrm6_mode_tunnel.c97 .encap = XFRM_MODE_TUNNEL,
Dxfrm6_mode_beet.c111 .encap = XFRM_MODE_BEET,
Dip6mr.c625 struct ipv6hdr *encap; in pim6_rcv() local
635 if (!pskb_may_pull(skb, sizeof(*pim) + sizeof(*encap))) in pim6_rcv()
648 encap = (struct ipv6hdr *)(skb_transport_header(skb) + in pim6_rcv()
651 if (!ipv6_addr_is_multicast(&encap->daddr) || in pim6_rcv()
652 encap->payload_len == 0 || in pim6_rcv()
653 ntohs(encap->payload_len) + sizeof(*pim) > skb->len) in pim6_rcv()
671 skb_pull(skb, (u8 *)encap - skb->data); in pim6_rcv()
/linux-3.4.99/net/openvswitch/
Dflow.c1016 const struct nlattr *encap; in ovs_flow_from_nlattrs() local
1024 encap = a[OVS_KEY_ATTR_ENCAP]; in ovs_flow_from_nlattrs()
1029 err = parse_flow_nlattrs(encap, a, &attrs); in ovs_flow_from_nlattrs()
1034 if (nla_len(encap)) in ovs_flow_from_nlattrs()
1176 struct nlattr *nla, *encap; in ovs_flow_to_nlattrs() local
1194 encap = nla_nest_start(skb, OVS_KEY_ATTR_ENCAP); in ovs_flow_to_nlattrs()
1198 encap = NULL; in ovs_flow_to_nlattrs()
1321 if (encap) in ovs_flow_to_nlattrs()
1322 nla_nest_end(skb, encap); in ovs_flow_to_nlattrs()
/linux-3.4.99/net/atm/
Dclip.c218 if (!clip_vcc->encap || in clip_push()
320 CLIP_VCC(vcc)->encap = mode; in clip_encap()
374 if (entry->vccs->encap) { in clip_start_xmit()
427 clip_vcc->encap = 1; in clip_mkip()
741 llc = ((clip_vcc == SEQ_NO_VCC_TOKEN) || clip_vcc->encap); in atmarp_info()
/linux-3.4.99/Documentation/networking/
Dopenvswitch.txt139 eth(...), eth_type(0x8100), vlan(vid=10, pcp=0), encap(eth_type(0x0800),
143 nested inside the "encap" attribute. Thus, an application that does
172 an all-zero-bits vlan and an empty encap attribute, like this:
174 eth(...), eth_type(0x8100), vlan(0), encap()
/linux-3.4.99/Documentation/isdn/
DREADME.syncppp23 /sbin/isdnctrl encap ippp0 syncppp

12