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: Tomas Kukosa <tomas.kukosa@xxxxxxxxxxx>
Date: Mon, 05 May 2003 15:41:55 +0200
Hi,
  put following code to the proto_reg_handoff_h323() function.
-----
  dissector_handle_t h225_handle;

  h225_handle = find_dissector("h225");
  if (h225_handle)
    dissector_add_handle("udp.port", h225_handle); 
-----
It allows you to use Decode As... for UDP. The TCP is similar. Or would
you like to use it in another way? I think the Decode As... works only
with "ethertype", "ip.proto", "tcp.port" and "udp.port" tables.

  Regards,
    Tomas


andreas.sikkema@xxxxxxxxxxx wrote:
> 
> 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

-- 
_________________________________________________

ANF DATA              ANF DATA spol. s r. o.
a SIEMENS Company     M-palác, Heršpická 5
                      639 00 Brno
                      Czech Republic
Tomáš Kukosa          Tel.: +420 - 5 4310 6822
PSE ECT IPN 5         Fax: +420 - 5 4324 8780
Room: 8.24            mailto:tomas.kukosa@xxxxxxxxxxx
_________________________________________________