netlink: merge add_uplink() and add_netlink()

handle netlink sockets and uplinks in the same way