luci-mod-status: amend luci-bwc.c to use conntrack tool
authorjpfox156 <[email protected]>
Fri, 25 Feb 2022 13:25:58 +0000 (23:25 +1000)
committerPaul Donald <[email protected]>
Thu, 2 Oct 2025 13:42:52 +0000 (15:42 +0200)
commit18786c56a850476d152a50b612a5254fcc5e94c3
tree33c18f8339cfb17efbcbe4d9e0bec8015c01c66b
parent788e47034becc7806485b40dbef9774a14f8ea9d
luci-mod-status: amend luci-bwc.c to use conntrack tool

Fall through to /usr/sbin/conntrack tool if /proc/net/nf_conntrack or
ip_conntrack is not available.

/proc/net/nf_conntrack has been obsoleted in recent kernels
(https://cateee.net/lkddb/web-lkddb/NF_CONNTRACK_PROCFS.html). This
change enables luci-bwc to collect conntrack information via the
/usr/sbin/conntrack tool (if installed) instead.

Populates the /luci/admin/status/realtime/connections chart.

Signed-off-by: James Fox <[email protected]>
[ format using tabs ]
Signed-off-by: Paul Donald <[email protected]>
modules/luci-mod-status/src/luci-bwc.c