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


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.

link

answered 12 Jan '12, 07:26

Bill%20Meier's gravatar image

Bill Meier ♦♦
2.7k1746
accept rate: 15%

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

By RSS:

Answers

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

Tags:

×120

Asked: 12 Jan '12, 07:13

Seen: 1,212 times

Last updated: 17 Jan '12, 03:28

powered by OSQA