diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-10-13 18:55:16 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-10-13 18:55:16 +0400 |
commit | f4335fb76b573137c352a34a6c95b1077ec459c2 (patch) | |
tree | 3a4095291d02eb7f55fa311288a57ed8a3d47cec /accel-pppd/ctrl/ipoe/ipoe.c | |
parent | 49129b17be561fdb9d52884bbc28702fbdb5f8aa (diff) | |
download | accel-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.c | 3 |
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; |