[netdevice] Avoid using zero as a network device index
authorMichael Brown <mcb30@ipxe.org>
Tue, 21 Jul 2015 13:51:16 +0000 (14:51 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 28 Jul 2015 12:48:29 +0000 (13:48 +0100)
commit9c185e2eac39561c2e9847c355c5b710c3e557b5
treea423a7f2e1af836bf61e1ef42b31e9aa5b1eef53
parent41670ca2fe6990b115ab717bcfd4af1e1e44c419
[netdevice] Avoid using zero as a network device index

Avoid using zero as a network device index, so that a zero
sin6_scope_id can be used to mean "unspecified" (rather than
unintentionally meaning "net0").

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/netdevice.c