summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accel-pppd/ctrl/pppoe/disc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/pppoe/disc.c b/accel-pppd/ctrl/pppoe/disc.c
index db969d8..58efd1e 100644
--- a/accel-pppd/ctrl/pppoe/disc.c
+++ b/accel-pppd/ctrl/pppoe/disc.c
@@ -85,6 +85,7 @@ static struct disc_net *init_net(const struct ap_net *net)
}
n->ctx.close = disc_close;
+ n->ctx.before_switch = log_switch;
n->hnd.fd = sock;
n->hnd.read = disc_read;
n->net = net;