diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-03-18 21:23:28 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-03-18 21:23:28 +0400 |
commit | b7c7e8390b523c678c6483d3aa88875d45e85b0d (patch) | |
tree | 3ac9ff688501c46ad2d05ff9397d6bd6bde979eb /accel-pppd/ctrl | |
parent | 5d158d9b0a1ef6e1f620a517de6de196ea0cfbc8 (diff) | |
download | accel-ppp-b7c7e8390b523c678c6483d3aa88875d45e85b0d.tar.gz accel-ppp-b7c7e8390b523c678c6483d3aa88875d45e85b0d.zip |
ipoe: make ipv4 address visible for other modules
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 6 |
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; |