diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2014-05-20 14:59:49 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-05-20 14:59:49 +0400 |
commit | b002a1bdc060bf26497ea65174bfb66468560abb (patch) | |
tree | 40658f89d72acfbeddff816bfa0554f8987c7753 /accel-pppd/ctrl | |
parent | 753dc522b4b0fa1551d08a2b338c6865c0bc11a6 (diff) | |
download | accel-ppp-b002a1bdc060bf26497ea65174bfb66468560abb.tar.gz accel-ppp-b002a1bdc060bf26497ea65174bfb66468560abb.zip |
ipoe: set initial session interface name to parent interface name (for logging purpose)
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index 6f09722..6855fba 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -483,13 +483,13 @@ static int ipoe_create_interface(struct ipoe_session *ses) return -1; } - log_ppp_info2("create interface %s parent %s\n", ifr.ifr_name, ses->serv->ifname); - strncpy(ses->ses.ifname, ifr.ifr_name, AP_IFNAME_LEN); ses->ses.ifindex = ses->ifindex; ses->ses.unit_idx = ses->ifindex; ses->ctrl.dont_ifcfg = 0; + log_ppp_info2("create interface %s parent %s\n", ifr.ifr_name, ses->serv->ifname); + return 0; } @@ -1025,6 +1025,7 @@ static struct ipoe_session *ipoe_session_create_dhcpv4(struct ipoe_serv *serv, s ses->serv = serv; ses->dhcpv4_request = pack; + strncpy(ses->ses.ifname, serv->ifname, AP_IFNAME_LEN); ses->xid = pack->hdr->xid; memcpy(ses->hwaddr, pack->hdr->chaddr, 6); |