diff options
| author | xebd <xeb@mail.ru> | 2020-01-13 12:27:15 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-13 12:27:15 +0300 |
| commit | 183ecb17cdb3f3a29912e1eea70603657ad221f0 (patch) | |
| tree | 2a7558853c2451fed00f3d10ea1c9ed641bacfe0 /accel-pppd/ctrl/pptp | |
| parent | 61862862a9fa24db4f16c24db1aed1f1a5f0be19 (diff) | |
| parent | f532c72d0cb33b16b9794d83a46969538bdf2596 (diff) | |
| download | accel-ppp-183ecb17cdb3f3a29912e1eea70603657ad221f0.tar.gz accel-ppp-183ecb17cdb3f3a29912e1eea70603657ad221f0.zip | |
Merge pull request #110 from themiron/ipv6-pool
Add named ipv6 pools support
Diffstat (limited to 'accel-pppd/ctrl/pptp')
| -rw-r--r-- | accel-pppd/ctrl/pptp/pptp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/pptp/pptp.c b/accel-pppd/ctrl/pptp/pptp.c index 081e9216..1161da5a 100644 --- a/accel-pppd/ctrl/pptp/pptp.c +++ b/accel-pppd/ctrl/pptp/pptp.c @@ -63,6 +63,8 @@ static int conf_echo_failure = 3; static int conf_verbose = 0; static int conf_mppe = MPPE_UNSET; static const char *conf_ip_pool; +static const char *conf_ipv6_pool; +static const char *conf_dpv6_pool; static const char *conf_ifname; static mempool_t conn_pool; @@ -713,6 +715,10 @@ static int pptp_connect(struct triton_md_handler_t *h) if (conf_ip_pool) conn->ppp.ses.ipv4_pool_name = _strdup(conf_ip_pool); + if (conf_ipv6_pool) + conn->ppp.ses.ipv6_pool_name = _strdup(conf_ipv6_pool); + if (conf_dpv6_pool) + conn->ppp.ses.dpv6_pool_name = _strdup(conf_dpv6_pool); if (conf_ifname) conn->ppp.ses.ifname_rename = _strdup(conf_ifname); @@ -802,6 +808,8 @@ static void load_config(void) } conf_ip_pool = conf_get_opt("pptp", "ip-pool"); + conf_ipv6_pool = conf_get_opt("pptp", "ipv6-pool"); + conf_dpv6_pool = conf_get_opt("pptp", "ipv6-pool-delegate"); conf_ifname = conf_get_opt("pptp", "ifname"); switch (iprange_check_activation()) { |
