|
@@ -114,7 +114,6 @@ struct l2tp_net {
|
|
|
|
|
|
static void l2tp_session_set_header_len(struct l2tp_session *session, int version);
|
|
|
static void l2tp_tunnel_free(struct l2tp_tunnel *tunnel);
|
|
|
-static void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel);
|
|
|
|
|
|
static inline struct l2tp_net *l2tp_pernet(struct net *net)
|
|
|
{
|
|
@@ -1312,7 +1311,7 @@ end:
|
|
|
|
|
|
/* When the tunnel is closed, all the attached sessions need to go too.
|
|
|
*/
|
|
|
-static void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel)
|
|
|
+void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel)
|
|
|
{
|
|
|
int hash;
|
|
|
struct hlist_node *walk;
|
|
@@ -1375,6 +1374,7 @@ again:
|
|
|
}
|
|
|
write_unlock_bh(&tunnel->hlist_lock);
|
|
|
}
|
|
|
+EXPORT_SYMBOL_GPL(l2tp_tunnel_closeall);
|
|
|
|
|
|
/* Tunnel socket destroy hook for UDP encapsulation */
|
|
|
static void l2tp_udp_encap_destroy(struct sock *sk)
|