diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-05-18 03:02:29 +0000 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-05-18 03:02:29 +0000 |
commit | d3a17940de818452970a80cb7dba7a793f8ee1e2 (patch) | |
tree | 0800f5975b6e5bd6fca886f3922e74f407aa3e9e /accel-pppd/session.c | |
parent | ad39c45f1fe5ba4f84c87de6166c55c2c176840c (diff) | |
download | accel-ppp-d3a17940de818452970a80cb7dba7a793f8ee1e2.tar.gz accel-ppp-d3a17940de818452970a80cb7dba7a793f8ee1e2.zip |
2-way interface renaming
First try to rename interface immediately and if it fails then do second try later just before bring interface up.
In case single-session=replace first try to rename interface may fail because first session may be active
Diffstat (limited to 'accel-pppd/session.c')
-rw-r--r-- | accel-pppd/session.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/accel-pppd/session.c b/accel-pppd/session.c index 5d12635..267b960 100644 --- a/accel-pppd/session.c +++ b/accel-pppd/session.c @@ -176,6 +176,11 @@ void __export ap_session_finished(struct ap_session *ses) _free(ses->ipv6_pool_name); ses->ipv6_pool_name = NULL; } + + if (ses->ifname_rename) { + _free(ses->ifname_rename); + ses->ifname_rename = NULL; + } #ifdef USE_BACKUP if (ses->backup) |