diff --git a/scripts/lua/modules/lua_utils.lua b/scripts/lua/modules/lua_utils.lua index 3f3ec3f82c..d950a5a04b 100644 --- a/scripts/lua/modules/lua_utils.lua +++ b/scripts/lua/modules/lua_utils.lua @@ -150,11 +150,12 @@ if((ifname == nil) and (_GET ~= nil)) then end end ---print("(((("..ifname.."))))") l4_keys = { - { "TCP", "tcp", 6 }, - { "UDP", "udp", 17 }, - { "ICMP", "icmp", 1 }, + { "TCP", "tcp", 6 }, + { "UDP", "udp", 17 }, + { "ICMP", "icmp", 1 }, + { "ICMPv6", "icmpv6", 58 }, + { "IGMP", "igmp", 2 }, { "Other IP", "other_ip", -1 } } @@ -599,7 +600,7 @@ function l4_proto_to_string(proto_id) end end - return nil + return string.format("%d", proto_id) end -- ##############################################