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

when is add_oid() funtion called?

0

When is the add_oid() function that is present in epan\dissectors\oids.h called? Where particularly are the values for the funtion add_oid() passed?

This question is marked "community wiki".

asked 12 Jan '12, 07:13

Premini%20Francis's gravatar image

Premini Francis
1222
accept rate: 0%

edited 12 Jan '12, 07:18

bstn's gravatar image

bstn
3751415


One Answer:

0

I presume you mean oid_add(). There is no add_oid() declared in oids.h (at least in the current dev Wireshark source).

A quick grep suggests that oid_add() is called only in oids.c so presumably examining that code will answer your question.

answered 12 Jan '12, 07:26

Bill%20Meier's gravatar image

Bill Meier ♦♦
3.2k1850
accept rate: 17%

Thank you for your reply. But kindly look at the screen shot attached. There is add_oid() function in oids.c alt text

(12 Jan '12, 08:37) Premini Francis

(I converted your answer to a comment; Please see the FAQ).

add_oid() is static in oids.c and is not declared in oids.h (at least in the dev Wireshark sources).

Thus add_oid() is called only within oids.c; looking at the calls should answer your question.

(12 Jan '12, 08:48) Bill Meier ♦♦

how is packet_snmp.c and add_oid() function are linked together?

(15 Jan '12, 05:27) Premini Francis