summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-11-28 16:55:26 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-11-28 16:55:26 +0300
commit44885639c470cec2d17bf4ee543ea7fc326d66e3 (patch)
tree623d15d8ba603641156a03db0ae91968f7a793a1 /accel-pppd
parentcaa03320491d741b2c954f4934f7a40dbe6e2ab9 (diff)
downloadaccel-ppp-44885639c470cec2d17bf4ee543ea7fc326d66e3.tar.gz
accel-ppp-44885639c470cec2d17bf4ee543ea7fc326d66e3.zip
ipoe: swtich netlink context to default net
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe_netlink.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe_netlink.c b/accel-pppd/ctrl/ipoe/ipoe_netlink.c
index df135458..54a5423a 100644
--- a/accel-pppd/ctrl/ipoe/ipoe_netlink.c
+++ b/accel-pppd/ctrl/ipoe/ipoe_netlink.c
@@ -606,8 +606,16 @@ static void ipoe_mc_close(struct triton_context_t *ctx)
triton_context_unregister(ctx);
}
+static void ipoe_mc_ctx_switch(struct triton_context_t *ctx, void *arg)
+{
+ net = def_net;
+ log_switch(NULL, NULL);
+}
+
+
static struct triton_context_t mc_ctx = {
.close = ipoe_mc_close,
+ .before_switch = ipoe_mc_ctx_switch,
};
static struct triton_md_handler_t mc_hnd = {