mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Prevents TCP state filter from being shown on non-TCP flows
This commit is contained in:
parent
aa652145d0
commit
6bcb8b18a2
2 changed files with 50 additions and 30 deletions
|
|
@ -1,5 +1,5 @@
|
|||
--
|
||||
-- (C) 2014-18 - ntop.org
|
||||
-- (C) 2014-19 - ntop.org
|
||||
--
|
||||
|
||||
dirs = ntop.getDirs()
|
||||
|
|
@ -338,33 +338,6 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function printL4ProtoDropdown(base_url, page_params, l4_protocols)
|
||||
local l4proto = _GET["l4proto"]
|
||||
local l4proto_filter
|
||||
if not isEmptyString(l4proto) then
|
||||
l4proto_filter = '<span class="glyphicon glyphicon-filter"></span>'
|
||||
else
|
||||
l4proto_filter = ''
|
||||
end
|
||||
local l4proto_params = table.clone(page_params)
|
||||
l4proto_params["l4proto"] = nil
|
||||
|
||||
print[[\
|
||||
<button class="btn btn-link dropdown-toggle" data-toggle="dropdown">]] print(i18n("flows_page.l4_protocol")) print[[]] print(l4proto_filter) print[[<span class="caret"></span></button>\
|
||||
<ul class="dropdown-menu" role="menu" id="flow_dropdown">\
|
||||
<li><a href="]] print(getPageUrl(base_url, l4proto_params)) print[[">]] print(i18n("flows_page.all_l4_protocols")) print[[</a></li>]]
|
||||
|
||||
if l4_protocols then
|
||||
for key, value in pairsByKeys(l4_protocols, asc) do
|
||||
print[[<li]] if tonumber(l4proto) == key then print(' class="active"') end print[[><a href="]] l4proto_params["l4proto"] = key; print(getPageUrl(base_url, l4proto_params)); print[[">]] print(l4_proto_to_string(key)) print [[ (]] print(string.format("%d",value.count)) print [[)</a></li>]]
|
||||
end
|
||||
end
|
||||
|
||||
print[[</ul>]]
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function printVLANFilterDropdown(base_url, page_params)
|
||||
local vlans = interface.getVLANsList()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue