diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2016-03-19 00:14:39 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-03-19 00:14:39 +0300 |
commit | 95bef06065ba1a95c3334fcb22cf613776d1433b (patch) | |
tree | 5965b17f69648a877b37d62bf0f656945941fd9d | |
parent | 51f696b9dab5aed4da4552adb8296a6e6620c9b7 (diff) | |
download | accel-ppp-95bef06065ba1a95c3334fcb22cf613776d1433b.tar.gz accel-ppp-95bef06065ba1a95c3334fcb22cf613776d1433b.zip |
ipoe: log interface renaming
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index e6f142a..4567779 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -1073,6 +1073,8 @@ static void ipoe_session_finished(struct ap_session *s) if (s->ifindex == ses->serv->ifindex && strcmp(s->ifname, ses->serv->ifname)) { struct ifreq ifr; + log_info2("ipoe: rename %s to %s\n", s->ifname, ses->serv->ifname); + strcpy(ifr.ifr_name, s->ifname); ioctl(sock_fd, SIOCGIFFLAGS, &ifr); |