105.4. libnl-3.12.0
Netlink protocol library (kernel <-> userspace networking)
3.12.0-1 · LGPL-2.1-only · 0.8 SBU · 2.6 MiB, 230 files · 41_system, 116 of 1047 · ports/core/net-libs/libnl
Homepage: https://github.com/thom311/libnl
libnl is a set of libraries over the kernel’s netlink sockets: libnl-3 for the protocol itself, libnl-route-3 for links, addresses and routes, libnl-genl-3 for generic netlink, and smaller ones for netfilter and the rest. KDOS’s wireless stack talks to the kernel through it — wpa_supplicant, hostapd, iw and NetworkManager — and libpcap uses it to put a wireless interface into monitor mode.
Required by (16): aircrack-ng, batctl, hostapd, htop, iw, ksystemstats, libksysguard, libpcap, libvirt, net-snmp, networkmanager, nfs-utils, openvpn, powertop, wireshark, wpa_supplicant.
Sources: libnl-3.12.0.tar.gz (1.1 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libnl'
build.sh:
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib \
--disable-static
make
make DESTDIR=$PKG install
Programs: genl-ctrl-list, idiag-socket-details, nf-ct-add, nf-ct-events, nf-ct-list, nf-exp-add, nf-exp-delete, nf-exp-list, nf-log, nf-monitor, nf-queue, nl-addr-add, nl-addr-delete, nl-addr-list, nl-class-add, nl-class-delete, nl-class-list, nl-classid-lookup, nl-cls-add, nl-cls-delete, nl-cls-list, nl-fib-lookup, nl-link-enslave, nl-link-ifindex2name, nl-link-list, nl-link-name2ifindex, nl-link-release, nl-link-set, nl-link-stats, nl-list-caches, nl-list-sockets, nl-monitor, nl-neigh-add, nl-neigh-delete, nl-neigh-list, nl-neightbl-list, nl-nh-list, nl-pktloc-lookup, nl-qdisc-add, nl-qdisc-delete, nl-qdisc-list, nl-route-add, nl-route-delete, nl-route-get, nl-route-list, nl-rule-list, nl-tctree-list, nl-util-addr.
Libraries: libnl-3.so, libnl-cli-3.so, libnl-genl-3.so, libnl-idiag-3.so, libnl-nf-3.so, libnl-route-3.so, libnl-xfrm-3.so.
Directories: /etc/libnl, /usr/include/libnl3, /usr/lib/libnl, /usr/share/licenses/libnl.
The build is configure’s plain shape. flex and bison are in depends because the route library parses classifier expressions (ematch) and packet location aliases (pktloc) with scanners and grammars the release tarball carries only as .l and .y sources, so the build generates them.