Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d08532bb authored by Guillaume Nault's avatar Guillaume Nault Committed by David S. Miller
Browse files

l2tp: don't export l2tp_tunnel_closeall()



This function is only used in l2tp_core.c.

Signed-off-by: default avatarGuillaume Nault <g.nault@alphalink.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2e67560e
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -1192,7 +1192,7 @@ static void l2tp_tunnel_destruct(struct sock *sk)


/* When the tunnel is closed, all the attached sessions need to go too.
/* When the tunnel is closed, all the attached sessions need to go too.
 */
 */
void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel)
static void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel)
{
{
	int hash;
	int hash;
	struct hlist_node *walk;
	struct hlist_node *walk;
@@ -1241,7 +1241,6 @@ void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel)
	}
	}
	write_unlock_bh(&tunnel->hlist_lock);
	write_unlock_bh(&tunnel->hlist_lock);
}
}
EXPORT_SYMBOL_GPL(l2tp_tunnel_closeall);


/* Tunnel socket destroy hook for UDP encapsulation */
/* Tunnel socket destroy hook for UDP encapsulation */
static void l2tp_udp_encap_destroy(struct sock *sk)
static void l2tp_udp_encap_destroy(struct sock *sk)
+0 −1
Original line number Original line Diff line number Diff line
@@ -219,7 +219,6 @@ int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id,
int l2tp_tunnel_register(struct l2tp_tunnel *tunnel, struct net *net,
int l2tp_tunnel_register(struct l2tp_tunnel *tunnel, struct net *net,
			 struct l2tp_tunnel_cfg *cfg);
			 struct l2tp_tunnel_cfg *cfg);


void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel);
void 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_session *l2tp_session_create(int priv_size,
					 struct l2tp_tunnel *tunnel,
					 struct l2tp_tunnel *tunnel,