summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2019-05-15 18:01:30 +0300
committerDmitry Kozlov <xeb@mail.ru>2019-05-15 18:01:30 +0300
commit35b6d11f2ec6884c5ef1385d1cf2dbd7e3745420 (patch)
tree665efb137aabb0283da89a8d428fb24a1f057ac5
parent27614ed5f76827d34e76af6848336c4f425972d1 (diff)
downloadaccel-ppp-35b6d11f2ec6884c5ef1385d1cf2dbd7e3745420.tar.gz
accel-ppp-35b6d11f2ec6884c5ef1385d1cf2dbd7e3745420.zip
ippool: exclude gw-ip-address from address pool
-rw-r--r--accel-pppd/extra/ippool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/extra/ippool.c b/accel-pppd/extra/ippool.c
index 844981c..44f450c 100644
--- a/accel-pppd/extra/ippool.c
+++ b/accel-pppd/extra/ippool.c
@@ -256,7 +256,8 @@ static void generate_pool_p2p(struct ippool_t *p)
addr = list_entry(p->gw_list.next, typeof(*addr), entry);
list_del(&addr->entry);
}
- }
+ } else if (conf_gw_ip_address == peer_addr->addr)
+ continue;
it = malloc(sizeof(*it));
if (!it) {