summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-05-20 10:08:59 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-05-20 10:08:59 +0400
commitce00db2e48a440e66321139ee714c7545b7807f3 (patch)
tree7d6a480db849b58416d6173a386afc896ae40062 /accel-pppd/ctrl
parentc7ad0e5361df5dbca9c99c2d65b4d603f6475f6d (diff)
downloadaccel-ppp-ce00db2e48a440e66321139ee714c7545b7807f3.tar.gz
accel-ppp-ce00db2e48a440e66321139ee714c7545b7807f3.zip
ipoe: add messages to know parent interface when creating vlan or virtual interface
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index af27e30..6f09722 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -483,6 +483,8 @@ 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;
@@ -1922,7 +1924,7 @@ void ipoe_vlan_notify(int ifindex, int vid)
strcpy(ifr.ifr_name, ifname);
len = strlen(ifr.ifr_name);
- log_info2("ipoe: create vlan %s\n", ifr.ifr_name);
+ log_info2("ipoe: create vlan %s parent %s\n", ifr.ifr_name, ifname);
if (iplink_vlan_add(ifr.ifr_name, ifindex, vid)) {
log_warn("ipoe: vlan-mon: %s: failed to add vlan\n", ifr.ifr_name);