{ "name": "libnl", "version": "3.12.0", "summary": "libnl: Netlink protocol libraries (core, route, genl, nf)", "category": "library", "license": "LGPL-2.1-only", "homepage": "https://github.com/thom311/libnl", "source": { "url": "https://github.com/thom311/libnl/releases/download/libnl3_12_0/libnl-3.12.0.tar.gz", "sha256": "fc51ca7196f1a3f5fdf6ffd3864b50f4f9c02333be28be4eeca057e103c0dd18" }, "watch": {"kind": "github-release", "repo": "thom311/libnl", "tag_regex": "^libnl([0-9]+)_([0-9]+)(?:_([0-9]+))?$"}, "deps": [], "env_packages": [], "static": true, "nss": true, "check": "check_lib libnl-route-3.0 \"netlink/netlink.h netlink/route/link.h\" 'struct nl_sock *s = nl_socket_alloc(); struct nl_cache *c = NULL; struct rtnl_link *lo; if (!s || nl_connect(s, NETLINK_ROUTE) || rtnl_link_alloc_cache(s, AF_UNSPEC, &c)) return 1; lo = rtnl_link_get_by_name(c, \"lo\"); printf(\"libnl: %d links, lo is index %d\\n\", nl_cache_nitems(c), lo ? rtnl_link_get_ifindex(lo) : -1); return !lo' " }