diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2017-08-08 18:31:21 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2017-08-08 18:31:21 +0300 |
commit | 945a132a7af2862d89fa1fb86c175fe595419eef (patch) | |
tree | 3c746a2c4b18ae6518b08542cb7520d0f3f525e4 /accel-pppd/ctrl | |
parent | 7bfde7ac526337e18673c57d85f83faaf4beeb12 (diff) | |
download | accel-ppp-945a132a7af2862d89fa1fb86c175fe595419eef.tar.gz accel-ppp-945a132a7af2862d89fa1fb86c175fe595419eef.zip |
ipoe: add client ip (second ip) as route when nat=1 (make quagga happy)
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index 09d0a5df..8687d1f4 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -1056,7 +1056,8 @@ static void ipoe_session_started(struct ap_session *s) triton_timer_mod(&ses->timer, 0); if (ses->ses.ipv4->peer_addr != ses->yiaddr) - ipaddr_add_peer(ses->ses.ifindex, ses->router, ses->yiaddr); + //ipaddr_add_peer(ses->ses.ifindex, ses->router, ses->yiaddr); // breaks quagga + iproute_add(ses->ses.ifindex, ses->router, ses->yiaddr, 0, conf_proto, 32); if (ses->ifindex != -1 && ses->xid) { ses->dhcpv4 = dhcpv4_create(ses->ctrl.ctx, ses->ses.ifname, ""); |