diff options
author | Tom Gundersen <teg@jklm.no> | 2014-01-29 21:24:44 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-01-30 14:30:39 +0100 |
commit | 50add2909c2e4b13a04d285b058b1c2270137656 (patch) | |
tree | 6ece9c372f2d850d7df78b6137fe8e6d71741184 /src/nss-myhostname | |
parent | 3815f36f05f8bc06904777b1eb7f1d22b78bcced (diff) |
networkd: netdev - reduce chance of race when receiving netdev's ifindex
When creating a new link, the kernel will not inform us about the new ifindex
in its ack. We have to listen for newly created devices and deduce the new
ifindex by matching on the ifname.
We used to do this by waiting for a new device from libudev, but that is asking
for trouble, as udev will happily rename the device before handing it to us.
Listen on rtnl instead, the chance of the name being changed before reaching us
is much smaller (if not nil).
Kernel patch in the works to make this unneccessary.
Diffstat (limited to 'src/nss-myhostname')
0 files changed, 0 insertions, 0 deletions