diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2019-05-15 18:01:30 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2019-05-15 18:01:30 +0300 |
commit | 35b6d11f2ec6884c5ef1385d1cf2dbd7e3745420 (patch) | |
tree | 665efb137aabb0283da89a8d428fb24a1f057ac5 /accel-pppd | |
parent | 27614ed5f76827d34e76af6848336c4f425972d1 (diff) | |
download | accel-ppp-35b6d11f2ec6884c5ef1385d1cf2dbd7e3745420.tar.gz accel-ppp-35b6d11f2ec6884c5ef1385d1cf2dbd7e3745420.zip |
ippool: exclude gw-ip-address from address pool
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/extra/ippool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/extra/ippool.c b/accel-pppd/extra/ippool.c index 844981cc..44f450cd 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) { |