mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Add l4_proto_to_id
This commit is contained in:
parent
c0bf79925a
commit
a0d8cd7595
1 changed files with 8 additions and 0 deletions
|
|
@ -591,6 +591,14 @@ function l4Label(proto)
|
|||
return(_handleArray(l4_keys, proto))
|
||||
end
|
||||
|
||||
function l4_proto_to_id(proto_name)
|
||||
for _, proto in pairs(l4_keys) do
|
||||
if proto[2] == proto_name then
|
||||
return(proto[3])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function l4_proto_to_string(proto_id)
|
||||
proto_id = tonumber(proto_id)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue