This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to find the ethernet dissector.

0

In previous Lua code we would do the following

    --
    -- This is not a COMEX message. Get the default dissector and invoke it.
    --
local default_dissector = Dissector.get( "eth" )
default_dissector:call( tvb , pinfo , tree )
We would call the ethernet dissector if we chose to not analyze this.

This work with 2.0.x versions of Wireshark

Now we are getting an error with 2.2.0

What are we doing wrong ?

asked 16 Oct '16, 21:30

Randy%20Rohrbach's gravatar image

Randy Rohrbach
21225
accept rate: 0%

edited 16 Oct '16, 22:20

Jaap's gravatar image

Jaap ♦
11.7k16101


One Answer:

1

The name has been changed:

  register_dissector("eth_withoutfcs", dissect_eth_withoutfcs, proto_eth);

register_dissector("eth_withfcs", dissect_eth_withfcs, proto_eth);

register_dissector("eth_maybefcs", dissect_eth_maybefcs, proto_eth);

You probably want “eth_withoutfcs”

answered 17 Oct ‘16, 01:33

Anders's gravatar image

Anders ♦
4.6k952
accept rate: 17%