diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2011-12-27 12:23:09 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2011-12-27 12:23:09 +0400 |
commit | 8f8c2e0deb97d434cee9a03ac7411ee9e37ac542 (patch) | |
tree | 3d4fdb49a73fb24efe44e2d76c9bb1de5f95f38f /accel-pppd/ppp | |
parent | ee41cba691ab9f6461f4933461cf82be161333de (diff) | |
download | accel-ppp-8f8c2e0deb97d434cee9a03ac7411ee9e37ac542.tar.gz accel-ppp-8f8c2e0deb97d434cee9a03ac7411ee9e37ac542.zip |
radius, ippool: implemented Framed-Pool attribute
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r-- | accel-pppd/ppp/ppp.c | 10 | ||||
-rw-r--r-- | accel-pppd/ppp/ppp.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c index 0848689..acda84e 100644 --- a/accel-pppd/ppp/ppp.c +++ b/accel-pppd/ppp/ppp.c @@ -239,6 +239,16 @@ static void destablish_ppp(struct ppp_t *ppp) _free(ppp->username); ppp->username = NULL; } + + if (ppp->ipv4_pool_name) { + _free(ppp->ipv4_pool_name); + ppp->ipv4_pool_name = NULL; + } + + if (ppp->ipv6_pool_name) { + _free(ppp->ipv6_pool_name); + ppp->ipv6_pool_name = NULL; + } if (ppp_shutdown && !ppp_stat.starting && !ppp_stat.active && !ppp_stat.finishing) kill(getpid(), SIGTERM); diff --git a/accel-pppd/ppp/ppp.h b/accel-pppd/ppp/ppp.h index 5246a3e..3ec15d9 100644 --- a/accel-pppd/ppp/ppp.h +++ b/accel-pppd/ppp/ppp.h @@ -105,6 +105,8 @@ struct ppp_t char *username; struct ipv4db_item_t *ipv4; struct ipv6db_item_t *ipv6; + char *ipv4_pool_name; + char *ipv6_pool_name; struct ppp_ctrl_t *ctrl; |