From ebd85d82895ad2b8d711660d5e0f850bbbc361d5 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Mon, 16 Sep 2013 22:34:21 +0400 Subject: ipoe: use proper address for L4-redirect --- accel-pppd/ctrl/ipoe/ipoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index 425ede1..9792152 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -414,7 +414,7 @@ static void ipoe_change_l4_redirect(struct ipoe_session *ses, int del) in_addr_t addr; if (ses->ses.ipv4) - addr = ses->ses.ipv4->addr; + addr = ses->ses.ipv4->peer_addr; else addr = ses->yiaddr; -- cgit v1.2.3