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

Definitions of the structures used in the code

0

Hello everyone,

Is there some list of all data types (structures) definitions that are defined by the developers? For example, the definition of the structure conversations___table I found in the file conversations_table.h.

For now, I need the definitions for the structures:

-conv___id_t

-nstime_t

-SAT_E

-address

-ptype

Thank you in advance.

Best regards,

Kiril

asked 12 Sep '12, 08:58

bluzerot's gravatar image

bluzerot
1223
accept rate: 0%


One Answer:

0

The source code is where the answer is. Look into using tools like cscope to find them easily.

answered 13 Sep '12, 04:55

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

Even simply doing grep helps or see which headers are included by the file using them and look trough those.

(13 Sep '12, 05:06) Anders ♦

I have the following alias:

alias srcfgrep='fgrep -Ril --include "*.[ch]" --exclude "*svn*" '

which helps a lot in finding files in which certain strings occur.

Usage:

[email protected]:~/Wireshark/trunk$ srcfgrep find_or_create_conversation *
asn1/h225/packet-h225-template.c
asn1/ldap/packet-ldap-template.c
asn1/ros/packet-ros-template.c
epan/conversation.c
epan/conversation.h
epan/dissectors/packet-adwin.c
epan/dissectors/packet-afp.c
[...]
[email protected]:~/Wireshark/trunk$

Which helps me a lot in finding my way through the code :-)

(13 Sep '12, 05:27) SYN-bit ♦♦