On Mon, Oct 12, 2009 at 10:59 AM, Awadhesh Kumar <awadhesh.usa@xxxxxxxxx> wrote:
> a) How can I get the source ip address of packets in this script file
Define the extractor outside the function InDirectnip_proto.dissector,
like this:
ip_addr_f = Field.new("ip.src")
Inside the dissector function you fetch the value using this
extractor, something like this:
if (ip_addr_f()) then
print(tostring(ip_addr_f()))
end
> b) is there any way to register multiple udp port in single lua file?
Sure, just add more udp_table:add()
--
Stig Bjørlykke