mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 12:20:09 +01:00
We can't tell pppd to create an interface with a given name, so we use the name generated by kernel and rename the interface afterwards. A race condition can happen during the rename: NM receives the interface name from pppd, but in the meantime the interface could be deleted and another one with that name could appear. In this case we would rename the wrong interface. Using a changing unit index, we ensure that interfaces created by NM don't race with each others. There is still the chance to race with externally-created interfaces, but I guess this is not easily solvable since the pppd plugin does not expose the ifindex. When the specified unit is already in use, the kernel selects another one. |
||
|---|---|---|
| .. | ||
| nm-ppp-manager-call.c | ||
| nm-ppp-manager-call.h | ||
| nm-ppp-manager.c | ||
| nm-ppp-manager.h | ||
| nm-ppp-plugin-api.h | ||
| nm-ppp-plugin.ver | ||
| nm-ppp-status.h | ||
| nm-pppd-plugin.c | ||
| nm-pppd-plugin.h | ||