chiark / gitweb /
sd-rtnl: do not require ifindex to be set for SETLINK messages
authorTom Gundersen <teg@jklm.no>
Sun, 16 Feb 2014 20:39:50 +0000 (21:39 +0100)
committerTom Gundersen <teg@jklm.no>
Sun, 16 Feb 2014 22:17:19 +0000 (23:17 +0100)
commit489e4fbb8c04bf26bb363bfdf4bbcd1505398528
tree9132d9a6683b939afdd3e7287cdb15c56e0fc5c4
parent6cd6fdb22820c5881a316831f4cf57d5d6e31144
sd-rtnl: do not require ifindex to be set for SETLINK messages

The kernel will then look up the ifindex itself based on the name.
This should be used very carefully as it is racey.

[This was a left-over hunk from my previous nspawn patch.]
src/libsystemd/sd-rtnl/rtnl-message.c