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

Custom Expert-infos

0

Won't lie, not too good with coding, so here's what I'm trying to do:

Make a custom expert-info (or color-rule otherwise) so that it will highlight a packet with a specific DS status (0x01, 0x02, 0x03 etc.) Highlight it in the Packet list, as well as in the Packet Details pane.

I've gotten as far as getting the wireshark sources, and looking at the epan/expert.x and epan/proto.h files, but at this point I'm out of my depth regarding the code. If someone could provide what format I would use, or if they knew a way to add a custom color rule that highlights it in both panes. So far, the only thing I've been able to accomplish is getting a custom color to highlight in the packet list, but not in the packet details.

Any help is greatly appreciated.

asked 18 Mar '14, 16:13

Reginald's gravatar image

Reginald
11112
accept rate: 0%

No coding is necessary to highlight the packet in the packet list; that's what coloring rules are for.

What is it you want to highlight in the packet details? The field containing the DS status?

(18 Mar '14, 20:47) Guy Harris ♦♦

I want it to highlight the field with the DS status.

I have seen the expert-infos do it, so I figured if I add a custom expert-info to the 802.11 dissector I would be able to highlight it in one of clothe currently established groups. (Ie yellow for PI_WARN)

(19 Mar '14, 04:31) Reginald

I did suggest making it possible to associate expert info with a colouring rule in this post http://www.wireshark.org/lists/wireshark-dev/201308/msg00033.html

I never did implement it though.

(20 Mar '14, 06:34) MartinM