Hi Anders (et. al.),
My protocol is based on an RTP payload type (e.g. 100) so my dissector_add
is as follows:
---
static enum { RTP_PAYLOAD_TYPE_PIRP = 100 };
void proto_reg_handoff_pirp(void)
{
static gboolean initialised = FALSE;
if (!initialised)
{
pirp_handle = create_dissector_handle(dissect_pirp,
proto_pirp);
}
dissector_add("rtp.pt", RTP_PAYLOAD_TYPE_PIRP, pirp_handle);
}
----
As mentioned before this was all working on a windows build but that was a
long time ago so I may have forgotten something. Apart from my
packet-<proto>.c file and an appropriate entry in a Makefile was there
something else that needed to be done?
Regards,
Glenn.
> -----Original Message-----
> From: wireshark-dev-bounces@xxxxxxxxxxxxx
> [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of
> Anders Broman
> Sent: Wednesday, 23 January 2008 4:33 AM
> To: Developer support list for Wireshark
> Subject: Re: [Wireshark-dev] Can't see my protocol in "Decode
> As ..." menu
>
> Hi,
> How are your dissectors registered?
> dissector_add("udp.port",...)?
>
> If your packets are recognised as RTP you may wish to
> register the dissectors with the RTP dissector (see packet-h264.c).
> Regards
> Anders
>
> -----Original Message-----
> From: wireshark-dev-bounces@xxxxxxxxxxxxx
> [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of
> Glenn Shirley
> Sent: den 22 januari 2008 10:31
> To: wireshark-dev@xxxxxxxxxxxxx
> Subject: [Wireshark-dev] Can't see my protocol in "Decode As ..." menu
>
> Hi all,
>
> I'm currently building Wireshark on CentOs 4 and trying to
> add in my own protocols.
>
> My build appears fine but when I run my newly built version
> of Wireshark I can see my protocols in the "Analyze | Enabled
> protocols" list but they aren't visible under the "Decode as" menu.
>
> My build on Win32 runs fine.
>
> These protocols are really just different RTP payloads.
>
> Is there something special that has to be done on Linux
> compared to Win32?
> Any hints as to where to start looking appreciated!
>
> Regards,
> Glenn.
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.19.8/1236 - Release Date:
> 21/01/2008
> 8:23 PM
>
>
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.19.9/1238 - Release
> Date: 22/01/2008 8:12 PM
>
>
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.9/1238 - Release Date: 22/01/2008
8:12 PM