Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Register dissector to MAC address

Date: Mon, 12 Nov 2007 18:25:08 +0100

Hi,

 

I have an application where I receive specially formed frames from a specific unique MAC address.

Is it possible to register my dissector to a MAC address?

 

All I was able to do was registering a dissector to an ethertype like follows:

dissector_add("ethertype", 0x88ff, test_dissector);

 

But

dissector_add("eth.src", “01:02:03:04:05:06”, test_dissector);

does not work (well actually it can’t, because the second parameter should be guint32).

 

Is there any possibility to do this?

 

Actually, my packet has no unique ethertype so it would be important to register to the unique MAC L (very special application, you see).

 

Thanks for your help!

 

Best regards,

Holger Pfrommer

 

 

Hilscher Gesellschaft fur Systemautomation mbH
Rheinstr. 15, 65795 Hattersheim
Sitz der Gesellschaft: Hattersheim
Geschaftsfuhrer: Hans-Jurgen Hilscher
Registergericht: Amtsgericht Frankfurt/Main
Handelsregister: Frankfurt B 26873
www.hilscher.com