Wireshark mailing list archives
LUA dissector: server port is 400-port range
From: Jerry White <jerrywhite518 () gmail com>
Date: Tue, 1 Nov 2016 20:06:48 -0700
I'm writing a dissector for an application that can use any tcp port between 8000-8399. I've been doing multiple port dissection with the following code, but it seems unmanageable for 400 ports. local tcp_port_table = DissectorTable.get("tcp.port") local mgi_dissector = tcp_port_table:get_dissector(6110) -- this port should be the same as above for i,port in ipairs{6111,6112,6113,6114,6115,6150,6151,6152,6153,6154,6155} do tcp_port_table:add(port,mgi_dissector) end Any help appreciated. Jerry
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- LUA dissector: server port is 400-port range Jerry White (Nov 01)
- Re: LUA dissector: server port is 400-port range Maynard, Chris (Nov 02)