OSQA is unmaintained. Help us figure out where to go from here.

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
accept rate: 0%

edited 12 Jan '12, 07:18

bstn's gravatar image


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.

permanent link

answered 12 Jan '12, 07:26

Bill%20Meier's gravatar image

Bill Meier ♦♦
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
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 12 Jan '12, 07:13

question was seen: 1,672 times

last updated: 17 Jan '12, 03:28

p​o​w​e​r​e​d by O​S​Q​A