Commit 273ec51d authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by David S. Miller

net: ppp_generic - introduce net-namespace functionality v2

- Each namespace contains ppp channels and units separately
  with appropriate locks
Signed-off-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4e9fb801
This diff is collapsed.
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <linux/list.h> #include <linux/list.h>
#include <linux/skbuff.h> #include <linux/skbuff.h>
#include <linux/poll.h> #include <linux/poll.h>
#include <net/net_namespace.h>
struct ppp_channel; struct ppp_channel;
...@@ -56,6 +57,9 @@ extern void ppp_input(struct ppp_channel *, struct sk_buff *); ...@@ -56,6 +57,9 @@ extern void ppp_input(struct ppp_channel *, struct sk_buff *);
that we may have missed a packet. */ that we may have missed a packet. */
extern void ppp_input_error(struct ppp_channel *, int code); extern void ppp_input_error(struct ppp_channel *, int code);
/* Attach a channel to a given PPP unit in specified net. */
extern int ppp_register_net_channel(struct net *, struct ppp_channel *);
/* Attach a channel to a given PPP unit. */ /* Attach a channel to a given PPP unit. */
extern int ppp_register_channel(struct ppp_channel *); extern int ppp_register_channel(struct ppp_channel *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment