summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index 082ff06..214f93a 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -581,6 +581,12 @@ static void __ipoe_session_activate(struct ipoe_session *ses)
if (ses->terminating)
return;
+
+ if (!ses->ses.ipv4) {
+ ses->ses.ipv4 = &ses->ipv4;
+ ses->ipv4.owner = NULL;
+ ses->ipv4.peer_addr = ses->yiaddr;
+ }
if (ses->ifindex != -1) {
addr = 0;