Hi, I was reading packet-udp.c and I encountered the following code that I do not understand
The Is it creating udp’s own sub-dissector table? if so, why is “ip.proto” in the argument field? Could someone clear things up for me? Thank you very much! Nick asked 13 Jul ‘17, 17:57 nickzhang |
2 Answers:
This is part of a feature in the the GTK (so called legacy) interface which has not (yet?) been implemented in the Qt interface. While doing a capture you can choose to have the packet list updated in real time or not, and you can choose to have a capture info dialog presented or not. To update the capture info dialog the incoming packets need to be dissected at a very high level. This is performed by these so called capture dissectors. Through this dialog you can see that the packet types which you expect are coming in, while not burdening the capture platform with detailed packet dissection, which may prove too time consuming for the rate of incoming packets. answered 14 Jul '17, 09:53 Jaap ♦ edited 16 Jul '17, 08:51 sindy |
These came in via change 12607. It appears their purpose is lightweight dissection for statistics purposes (look at the packet-ethertype.c capture dissector for an example). answered 14 Jul '17, 06:58 JeffMorriss ♦ Thank you for the helpful information. (15 Jul '17, 19:35) nickzhang |
Thank you, this answers my question clearly.