diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-04-22 23:17:53 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-04-22 23:17:53 +0400 |
commit | 37c752f496b8db30bb56d39b4b5525487790088e (patch) | |
tree | 98c3e8864718c8597ea1ba37d353a5fa1d6342b5 /accel-pppd/ctrl/ipoe | |
parent | 7941c08174dd5acbaf6cf5316d4fc3ad31a2327d (diff) | |
download | accel-ppp-37c752f496b8db30bb56d39b4b5525487790088e.tar.gz accel-ppp-37c752f496b8db30bb56d39b4b5525487790088e.zip |
ipoe: use interface's ifindex as Nas-Port
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-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 8044ad0..f0e61c9 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -341,6 +341,8 @@ static void ipoe_session_start(struct ipoe_session *ses) return; } } + + ses->ses.unit_idx = ses->serv->ifindex; triton_event_fire(EV_CTRL_STARTING, &ses->ses); triton_event_fire(EV_CTRL_STARTED, &ses->ses); @@ -407,6 +409,7 @@ static void ipoe_session_start(struct ipoe_session *ses) strncpy(ses->ses.ifname, ifr.ifr_name, AP_IFNAME_LEN); ses->ses.ifindex = ses->ifindex; + ses->ses.unit_idx = ses->ifindex; } ap_session_set_ifindex(&ses->ses); |