I want to determine if a network card is enabled, up, and plugged in. Basically, I want to know if the network card will work. I need this information from with a C++ program, a
AF_NETLINK
sockaddr_nl
nl_groups = RTMGRP_LINK
RTM_GETLINK
RTM_NEWLINK
RTM_DELLINK