summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe/ipoe.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2013-10-13 18:55:16 +0400
committerDmitry Kozlov <xeb@mail.ru>2013-10-13 18:55:16 +0400
commitf4335fb76b573137c352a34a6c95b1077ec459c2 (patch)
tree3a4095291d02eb7f55fa311288a57ed8a3d47cec /accel-pppd/ctrl/ipoe/ipoe.c
parent49129b17be561fdb9d52884bbc28702fbdb5f8aa (diff)
downloadaccel-ppp-f4335fb76b573137c352a34a6c95b1077ec459c2.tar.gz
accel-ppp-f4335fb76b573137c352a34a6c95b1077ec459c2.zip
ipoe: add missing local IP address assignment
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index 58e881f1..23acb66f 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -622,6 +622,9 @@ static void __ipoe_session_start(struct ipoe_session *ses)
return;
}
+ if (ses->ses.ipv4 && !ses->ses.ipv4->addr)
+ ses->ses.ipv4->addr = ses->siaddr;
+
if (!ses->router)
ses->router = ses->siaddr;