diff options
-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 e6f142a3..45677798 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); |