summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe/ipoe.c
diff options
context:
space:
mode:
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 58e881f..23acb66 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;