chiark / gitweb /
networkd: netdev - fix error handling in set_ifindex()
authorTom Gundersen <teg@jklm.no>
Mon, 24 Mar 2014 20:50:16 +0000 (21:50 +0100)
committerTom Gundersen <teg@jklm.no>
Mon, 24 Mar 2014 21:09:06 +0000 (22:09 +0100)
commitc3ebdce39a748f738f3731730cd085ff3551b379
tree30cb6110109acb6a765c88c406535c053e5e80ae
parentc4bfd1691f4d3e26d6d7f34dbca941e119956e8a
networkd: netdev - fix error handling in set_ifindex()

Firstly, remove stray assert(). Also be a bit stricter when verifying the
received info. If we get an applicable newlink message that we can't make
sense of, we will now enter NETDEV_FAILED, as we cannot reasonably continue
without knowing the ifindex of our device.
src/network/networkd-netdev.c