xebd / accel-ppp

High performance PPTP/L2TP/PPPoE/IPoE server for Linux
GNU General Public License v2.0
296 stars 108 forks source link

Refresh interface index when moving to another netns #122

Closed laarmen closed 4 years ago

laarmen commented 4 years ago

When a network interface is moved to another network namespace, it might be reindexed if its current index conflicts with one already used in the new namespace. This patchset refreshes our record of the index any time we move the interface around.