summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-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 = {