Reworked BGP support
Some checks are pending
Build / build (push) Waiting to run
CIFuzz / Fuzzing (address) (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
CodeQL / Analyze-1 (push) Waiting to run

This commit is contained in:
Luca Deri 2026-04-13 21:57:21 +02:00
parent 312f7d2f86
commit 5651aa07ea
12 changed files with 427 additions and 360 deletions

View file

@ -32,7 +32,9 @@ function format_utils.formatBgpBmpInfo(bgp_data)
-- ASN
out[#out + 1] = "<tr><th>" .. i18n("flow_details.bgp_peer_asn") .. "</th>"
for _, peer in ipairs(peer_list) do
out[#out + 1] = "<td>" .. peer.info.asn .. "</td>"
out[#out + 1] = "<td>"
.. "<A HREF=\"" .. ntop.getHttpPrefix() .. "/lua/hosts_stats.lua?asn=" .. peer.info.asn
.. "\">" .. peer.info.asn .. " (" .. shortenString(ntop.getASNameFromASN(tonumber(peer.info.asn)), max_len) .. ")</A>"
end
out[#out + 1] = "</tr>"