summaryrefslogtreecommitdiff
path: root/accel-pppd/ifcfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/ifcfg.c')
-rw-r--r--accel-pppd/ifcfg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/ifcfg.c b/accel-pppd/ifcfg.c
index fbd11bf..d939547 100644
--- a/accel-pppd/ifcfg.c
+++ b/accel-pppd/ifcfg.c
@@ -319,6 +319,9 @@ int __export ap_session_rename(struct ap_session *ses, const char *ifname, int l
}
ses->net = ns;
net = ns;
+
+ /* Refresh the index now that it is in a new namespace */
+ ses->ifindex = net->get_ifindex(ses->ifname);
log_ppp_info2("move to namespace %s\n", ns->name);
}