diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-10-17 21:51:54 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-10-17 21:51:54 +0400 |
commit | e61344e439bbbca5ba711cf7566fdf5bcf8a34cc (patch) | |
tree | 4a7df87ca09a45e15ae5d11f8d12a9d58a28f0a4 /accel-pppd/ctrl/ipoe/dhcpv4.c | |
parent | 8d3351d4cdfcaf45aa2c918b0f8920798be4dc04 (diff) | |
download | accel-ppp-xebd-e61344e439bbbca5ba711cf7566fdf5bcf8a34cc.tar.gz accel-ppp-xebd-e61344e439bbbca5ba711cf7566fdf5bcf8a34cc.zip |
ipoe: initialize before_switch function for server contexts
Diffstat (limited to 'accel-pppd/ctrl/ipoe/dhcpv4.c')
-rw-r--r-- | accel-pppd/ctrl/ipoe/dhcpv4.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/dhcpv4.c b/accel-pppd/ctrl/ipoe/dhcpv4.c index 21042b7..b34a239 100644 --- a/accel-pppd/ctrl/ipoe/dhcpv4.c +++ b/accel-pppd/ctrl/ipoe/dhcpv4.c @@ -890,6 +890,8 @@ struct dhcpv4_relay *dhcpv4_relay_create(const char *_addr, in_addr_t giaddr, st r->hnd.fd = sock; r->hnd.read = dhcpv4_relay_read; + r->ctx.before_switch = log_switch; + triton_context_register(&r->ctx, NULL); triton_md_register_handler(&r->ctx, &r->hnd); triton_md_enable_handler(&r->hnd, MD_MODE_READ); |