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

Wireshark dissector with pcapng format file - access section/interface description fields

0

I am writing a custom protocol wireshark dissector in C as a plugin. I have got the dissector working . I am not able to figure out if there is a way to access the information we fill in section header / interface description header from our dissector? There seem to be tvbuff and packet_info passed , which don't have this information.

Is there a way to access these fields?

asked 14 Dec '16, 10:17

rashmi_s's gravatar image

rashmi_s
11224
accept rate: 0%

Exactly what information are you looking for? Have you examined the pinfo structure passed into your dissector?

(14 Dec '16, 10:25) grahamb ♦

Hello,

I want to access the options fields (comment , os , hw etc) and other options fields I filled in section header and interface description block. I did have a look into pinfo , it seems to contain the metadata from enhanced packet block. Please correct me if I am wrong , is there any field in pinfo which will give access to section header and interface description options?

(14 Dec '16, 10:31) rashmi_s

Is there any documentation explaining the pinfo structure in detail? I am not able to find section header or interface description options in pinfo.

(14 Dec '16, 12:43) rashmi_s

One Answer:

0

Is there a way to access these fields?

There's no supported mechanism to get at options in a Section Header Block or an Interface Description Block.

answered 14 Dec '16, 14:13

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%