|
@@ -161,6 +161,9 @@ struct l2tp_tunnel_cfg {
|
|
|
|
|
|
struct l2tp_tunnel {
|
|
|
int magic; /* Should be L2TP_TUNNEL_MAGIC */
|
|
|
+
|
|
|
+ unsigned long dead;
|
|
|
+
|
|
|
struct rcu_head rcu;
|
|
|
rwlock_t hlist_lock; /* protect session_hlist */
|
|
|
bool acpt_newsess; /* Indicates whether this
|
|
@@ -255,7 +258,7 @@ int 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);
|
|
|
void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel);
|
|
|
-int l2tp_tunnel_delete(struct l2tp_tunnel *tunnel);
|
|
|
+void l2tp_tunnel_delete(struct l2tp_tunnel *tunnel);
|
|
|
struct l2tp_session *l2tp_session_create(int priv_size,
|
|
|
struct l2tp_tunnel *tunnel,
|
|
|
u32 session_id, u32 peer_session_id,
|