/net/l2tp/ |
H A D | l2tp_eth.c | 208 static int l2tp_eth_create(struct net *net, u32 tunnel_id, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg) argument 219 tunnel = l2tp_tunnel_find(net, tunnel_id);
|
H A D | l2tp_netlink.c | 48 u32 tunnel_id; local 60 tunnel_id = nla_get_u32(info->attrs[L2TP_ATTR_CONN_ID]); 62 tunnel = l2tp_tunnel_find(net, tunnel_id); 102 u32 tunnel_id; local 115 tunnel_id = nla_get_u32(info->attrs[L2TP_ATTR_CONN_ID]); 176 tunnel = l2tp_tunnel_find(net, tunnel_id); 186 ret = l2tp_tunnel_create(net, fd, proto_version, tunnel_id, 198 u32 tunnel_id; local 206 tunnel_id = nla_get_u32(info->attrs[L2TP_ATTR_CONN_ID]); 208 tunnel = l2tp_tunnel_find(net, tunnel_id); 223 u32 tunnel_id; local 338 u32 tunnel_id; local 402 u32 tunnel_id = 0; local [all...] |
H A D | l2tp_ip.c | 50 static struct sock *__l2tp_ip_bind_lookup(struct net *net, __be32 laddr, int dif, u32 tunnel_id) argument 61 if ((l2tp->conn_id == tunnel_id) && 73 static inline struct sock *l2tp_ip_bind_lookup(struct net *net, __be32 laddr, int dif, u32 tunnel_id) argument 75 struct sock *sk = __l2tp_ip_bind_lookup(net, laddr, dif, tunnel_id); 120 u32 tunnel_id; local 168 /* Get the tunnel_id from the L2TP header */ 175 tunnel_id = ntohl(*(__be32 *) &skb->data[4]); 176 tunnel = l2tp_tunnel_find(net, tunnel_id); 183 sk = __l2tp_ip_bind_lookup(net, iph->daddr, 0, tunnel_id);
|
H A D | l2tp_ip6.c | 61 int dif, u32 tunnel_id) 72 if ((l2tp->conn_id == tunnel_id) && 86 int dif, u32 tunnel_id) 88 struct sock *sk = __l2tp_ip6_bind_lookup(net, laddr, dif, tunnel_id); 132 u32 tunnel_id; local 180 /* Get the tunnel_id from the L2TP header */ 187 tunnel_id = ntohl(*(__be32 *) &skb->data[4]); 188 tunnel = l2tp_tunnel_find(&init_net, tunnel_id); 196 0, tunnel_id); 59 __l2tp_ip6_bind_lookup(struct net *net, struct in6_addr *laddr, int dif, u32 tunnel_id) argument 84 l2tp_ip6_bind_lookup(struct net *net, struct in6_addr *laddr, int dif, u32 tunnel_id) argument
|
H A D | l2tp_core.h | 177 u32 tunnel_id; member in struct:l2tp_tunnel 209 int (*session_create)(struct net *net, u32 tunnel_id, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg); 248 struct l2tp_tunnel *l2tp_tunnel_find(struct net *net, u32 tunnel_id); 251 int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id,
|
H A D | l2tp_core.c | 330 struct l2tp_tunnel *l2tp_tunnel_find(struct net *net, u32 tunnel_id) argument 337 if (tunnel->tunnel_id == tunnel_id) { 658 tunnel->name, tunnel->tunnel_id, 849 u32 tunnel_id, session_id; local 911 tunnel_id = ntohs(*(__be16 *) ptr); 917 tunnel_id = tunnel->tunnel_id; 928 tunnel->name, tunnel_id, session_id); 985 u32 tunnel_id local 1354 l2tp_tunnel_sock_create(struct net *net, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, struct socket **sockp) argument 1474 l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg, struct l2tp_tunnel **tunnelp) argument [all...] |
H A D | l2tp_ppp.c | 25 * attaches it to a bound UDP socket with local tunnel_id / session_id and 26 * peer tunnel_id / session_id set. Data can then be sent or received using 48 * sax.pppol2tp.s_tunnel = tunnel_id; 602 u32 tunnel_id, peer_tunnel_id; local 632 tunnel_id = sp->pppol2tp.s_tunnel; 641 tunnel_id = sp3->pppol2tp.s_tunnel; 649 tunnel_id = sp6->pppol2tp.s_tunnel; 658 tunnel_id = sp6->pppol2tp.s_tunnel; 667 /* Don't bind if tunnel_id is 0 */ 669 if (tunnel_id 808 pppol2tp_session_create(struct net *net, u32 tunnel_id, u32 session_id, u32 peer_session_id, struct l2tp_session_cfg *cfg) argument [all...] |