ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Plugin question : proto_tree_add_oid() is not exported

From: Gerald Combs <gerald@xxxxxxxxxxxxx>
Date: Thu, 7 Nov 2019 14:52:19 +0000
On 11/7/19 2:29 PM, kyossi wrote:
> Hi, 
> 
> I'm developing custom plugin dll which dissect snmp-like protocol(proprietary).
> I noticed proto_tree_add_oid() in  proto.h does not prefixed
> with WS_DLL_PUBLIC.
> (https://github.com/wireshark/wireshark/blob/f577d5b3ea0c277bc15168f563a2f2fdd0b87c40/epan/proto.h#L1850)
> 
> So my plugin dll can't call proto_tree_add_oid()...
> Is this just a bug or is there any reason that this is not exported to plugins?

It looks like this was a simple oversight. A fix is inbound at https://code.wireshark.org/review/c/35018/