diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2016-07-11 09:47:04 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-07-11 09:47:04 +0300 |
commit | e0cca4344f70b9c9e23e3c6a7e17c8e93c765184 (patch) | |
tree | 1068654b025b2e24c983d99776696ad889a0c138 /accel-pppd/session.c | |
parent | 6fb04941ca41312909208938bfac4f753d3c277c (diff) | |
download | accel-ppp-e0cca4344f70b9c9e23e3c6a7e17c8e93c765184.tar.gz accel-ppp-e0cca4344f70b9c9e23e3c6a7e17c8e93c765184.zip |
implemented support for network namespace
This is done using radius attribute NAS-Port-Id. The new format of this attribute is NAS-Port-Id=[ns/][name].
Namespaces must be created malually by "ip netns add ..." command
Diffstat (limited to 'accel-pppd/session.c')
-rw-r--r-- | accel-pppd/session.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/accel-pppd/session.c b/accel-pppd/session.c index ad164f3f..730a57aa 100644 --- a/accel-pppd/session.c +++ b/accel-pppd/session.c @@ -62,6 +62,7 @@ void __export ap_session_init(struct ap_session *ses) INIT_LIST_HEAD(&ses->pd_list); ses->ifindex = -1; ses->unit_idx = -1; + ses->net = net; } void __export ap_session_set_ifindex(struct ap_session *ses) @@ -235,6 +236,9 @@ void __export ap_session_finished(struct ap_session *ses) ses->ifname_rename = NULL; } + if (ses->net) + ses->net->release(ses->net); + if (ses->timer.tpd) triton_timer_del(&ses->timer); |