Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: Re: [Wireshark-dev] How to attach a protocol to the ethernet dissector table (Lua script).

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: didier <dgautheron@xxxxxxxx>
Date: Tue, 13 Jan 2009 22:34:40 +0100

Hi,

Le lundi 12 janvier 2009 à 16:52 +0100, Benoit RAT a écrit :
> I'm actually using a simple protocol to communicate between FPGA and i
> would like to parse it by wireshark.
> I actually have a lua script which works well on the UDP but i would
> like to use only ethernet frame (the protocol should be define by the
> ethernet type).

> s4n_proto = Proto("s4n","S4N","S4N Protocol")
> -- create a function to dissect it
> function s4n_proto.dissector(buffer,pinfo,tree)
>     pinfo.cols.protocol = "S4N"
>     ...
> end
> 
> 
> -- load the udp.port table
> udp_table = DissectorTable.get("udp.port")
> -- register our protocol to handle udp port 18000
> udp_table:add(18000,s4n_proto)
> 
> But now i would like to replace this last lines by:
> eth_table = DissectorTable.get("eth.type")
I've never tested it with lua but it's ethertype not eth.type

> eth_table:add(18000,s4n_proto)
> 
> However, i've a probleme the eth.type is no a dissector table
> therefore I don't know how to do to simply register a simple lua
> protocol to an ethernet type/protocol.

Didier



  • References:
    • [Wireshark-dev] How to attach a protocol to the ethernet dissector table (Lua script).
      • From: Benoit RAT
  • Prev by Date: Re: [Wireshark-dev] [HELP]: Not able to include my plugin inWireshark-rpm
  • Next by Date: [Wireshark-dev] GeoIP and what to expect
  • Previous by thread: [Wireshark-dev] How to attach a protocol to the ethernet dissector table (Lua script).
  • Next by thread: [Wireshark-dev] [HELP]: Not able to include my plugin in Wireshark-rpm
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation