]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/l2tp/l2tp_core.h
l2tp: remove l2tp_session_find()
[karo-tx-linux.git] / net / l2tp / l2tp_core.h
index aebf281d09eeb31c531eb624bd2ddd78cab8da9b..a3248e18badb9051a8dce2965c5de191da5849a4 100644 (file)
@@ -230,11 +230,13 @@ out:
        return tunnel;
 }
 
-struct l2tp_session *l2tp_session_find(struct net *net,
-                                      struct l2tp_tunnel *tunnel,
-                                      u32 session_id);
-struct l2tp_session *l2tp_session_find_nth(struct l2tp_tunnel *tunnel, int nth);
-struct l2tp_session *l2tp_session_find_by_ifname(struct net *net, char *ifname);
+struct l2tp_session *l2tp_session_get(struct net *net,
+                                     struct l2tp_tunnel *tunnel,
+                                     u32 session_id, bool do_ref);
+struct l2tp_session *l2tp_session_get_nth(struct l2tp_tunnel *tunnel, int nth,
+                                         bool do_ref);
+struct l2tp_session *l2tp_session_get_by_ifname(struct net *net, char *ifname,
+                                               bool do_ref);
 struct l2tp_tunnel *l2tp_tunnel_find(struct net *net, u32 tunnel_id);
 struct l2tp_tunnel *l2tp_tunnel_find_nth(struct net *net, int nth);