Ethereal-dev: Re: [Ethereal-dev] Decode as

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Ronnie Sahlberg" <ronnie_sahlberg@xxxxxxxxxxxxxx>
Date: Mon, 5 May 2003 23:53:14 +1000
In the DecodeAs.. dialog for say
TCP or UDP packet only those protocols that are registered to use a TCP/UDP
port
will appear.

I.e.  dissector_add("tcp.port", 111, rpc_tcp_handle);
will make the RPC protocol available in DecodeAs...

It is not sufficient to just have it registered as a heuristic dissector as
 heur_dissector_add("tcp", dissect_rpc_tcp_heur, proto_rpc);
and the live above will not be sufficient to make RPC selectable.




----- Original Message -----
From: andreas.sikkema
Sent: Monday, May 05, 2003 11:10 PM
Subject: [Ethereal-dev] Decode as


> Hi,
>
> I have a protocol in my plugin (the H.323 mother of all plugins) and I
> can't get it in the list
> for Decode As... So far I register it using the following code called from
> plugin_init()
>
>         h225Cont.h225_0.hf_proto_H225 = proto_register_protocol( "ITU-T
> Recommendation H.225.0", "H.225.0", "h225" );
>         proto_register_field_array( h225Cont.h225_0.hf_proto_H225, hfh225,
> array_length( hfh225 ) );
>         proto_register_subtree_array( etth225, array_length( etth225 ) );
>                 register_dissector( "h225", dissect_h225,
> h225Cont.h225_0.hf_proto_H225 );
>
> What do I have to do to get it in the list for decode as?
>
> --
> Andreas Sikkema
> andreas.sikkema@xxxxxxxxxxx
> "While you're waiting, read the free novel we sent you.
>  It's a Spanish story about a guy named `Manual'" - Dilbert
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>