summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2013-03-18 21:23:28 +0400
committerDmitry Kozlov <xeb@mail.ru>2013-03-18 21:23:28 +0400
commitb7c7e8390b523c678c6483d3aa88875d45e85b0d (patch)
tree3ac9ff688501c46ad2d05ff9397d6bd6bde979eb /accel-pppd/ctrl/ipoe
parent5d158d9b0a1ef6e1f620a517de6de196ea0cfbc8 (diff)
downloadaccel-ppp-b7c7e8390b523c678c6483d3aa88875d45e85b0d.tar.gz
accel-ppp-b7c7e8390b523c678c6483d3aa88875d45e85b0d.zip
ipoe: make ipv4 address visible for other modules
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-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 082ff067..214f93a9 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;