ifnet: add getInterfaceLinkState function
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 10 Feb 2016 13:17:59 +0000 (14:17 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 10 Feb 2016 13:32:41 +0000 (14:32 +0100)
commit4e4ebd2f7a418ab1b3e45ee5217b7139c6fad351
treed23eeb6d1cb572af22fd7f203570bd081d677a1b
parentf455302f794fb61d780b4a7c5970ea4a25cadf13
ifnet: add getInterfaceLinkState function

This Linux-only function queries a network interface to see if it has a
carrier (cable (dis)connected, medium up/down, etc).

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/ifnet.h
src/unix/ifnet.c