Wireshark-dev: Re: [Wireshark-dev] Making oui_base_custom available more generally
From: Michael Mann <mmann78@xxxxxxxxxxxx>
Date: Sat, 19 Aug 2017 08:57:44 -0400
I think there may be 2 types of OUIs (so I may need help distinguishing them)
There is oui_vals (in epan/oui.h) which could useFT_UINT24 + VALS(), but then there is the code in packet-ieee80211.c that integrates get_manuf_name_if_known() (and treats FT_UINT24 as a byte array). I had presumed FT_OUI would support the latter.
-----Original Message-----
From: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
Sent: Sat, Aug 19, 2017 8:33 am
Subject: Re: [Wireshark-dev] Making oui_base_custom available more generally
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives: https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
From: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
Sent: Sat, Aug 19, 2017 8:33 am
Subject: Re: [Wireshark-dev] Making oui_base_custom available more generally
On Sat, Aug 19, 2017 at 2:19 PM, Michael Mann via Wireshark-dev <wireshark-dev@xxxxxxxxxxxxx> wrote:
If you're talking about oui_base_custom(), I think the better idea would be to create a field type (FT_OUI) for it.
Yes it is a idea but a BASE_OUI with VALS() (and use FT_UINT24) will be work too ?
-----Original Message-----
From: Roland Knall <rknall@xxxxxxxxx>
To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
Sent: Sat, Aug 19, 2017 7:16 am
Subject: Re: [Wireshark-dev] Making oui_base_custom available more generally
______________________________Which OUI are we talking about? Generally speaking, a wsutil/oui_handler.? could be useful, as for instance, openSAFETY uses OUI-24 as well. So it could be made the case, to move the OUI handling outside of the dissector and into a generic wsutil or epan structure.
cheers,Roland
On Sat, Aug 19, 2017 at 1:04 PM, Dario Lombardo <dario.lombardo.ml@xxxxxxxxx> wrote:
I don't think that's enough. The linker should be able to resolve the symbol this way, but the compiler shouldn't. Then you'd have to declare it extern. But the right thing to do is to create a .h file that holds the public declaration of the .c file, and include it. This is a best practice generally speaking, and it's whas is done in wireshark as well. Have a look at packet-dns.c/h that do what you think. Moreover, there is already a file packet-ieee80211.h: that should be the place.Cheers,Dario.
On Sat, Aug 19, 2017 at 4:14 AM, Richard Sharpe <realrichardsharpe@xxxxxxxxx> wrote:
Hi folks,
I have a need to deal with OUIs in a dissector I am writing and find
that it is defined as static void in packet_ieee80211.c.
Should I simply remove static from that declaration, or should we
promote it to some other file to make it generally available?
--
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)
____________________________________________________________ _______________
Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives: https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-request@wireshark.org ?subject=unsubscribe
____________________________________________________________ _______________
Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives: https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-request@wireshark.org ?subject=unsubscribe
______________________________ _______________ Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx> Archives: https://www.wireshark.org/ lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request@wireshark.org?subject= unsubscribe
____________________________________________________________ _______________
Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives: https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-request@wireshark.org ?subject=unsubscribe
- References:
- Re: [Wireshark-dev] Making oui_base_custom available more generally
- From: Alexis La Goutte
- Re: [Wireshark-dev] Making oui_base_custom available more generally
- Prev by Date: Re: [Wireshark-dev] Making oui_base_custom available more generally
- Next by Date: Re: [Wireshark-dev] Making oui_base_custom available more generally
- Previous by thread: Re: [Wireshark-dev] Making oui_base_custom available more generally
- Next by thread: Re: [Wireshark-dev] Making oui_base_custom available more generally
- Index(es):