Ethereal-dev: [Ethereal-dev] assertion failed

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

Date: Thu, 28 Apr 2005 11:45:57 +0200

Hi all,

I've written a dissector (for an owner protocol) which must be able to be atop the UDP protocol when this one has a dst port number of 80 or a src port number of 80.
To do that, I've just do the following steps :
  • add the following code : register_dissector("nl", dissect_nl_parkeon, proto_nl_parkeon);  at the end of the proto_register_nl_parkeon(void) method
  • and the following method (as explained in the readme.developper ) :


void proto_reg_handoff_nl_parkeon(void)
{
        dissector_handle_t nl_parkeon_handle;

        nl_parkeon_handle = create_dissector_handle(dissect_nl_parkeon,
            proto_nl_parkeon);

        dissector_add("udp.srcport", 80, nl_parkeon_handle);
        dissector_add("udp.dstport", 80, nl_parkeon_handle);
}

When I build ethereal, the following error occurs :

94c8a2.jpg


The way I'm adding this dissector is probably wrong (I've probably omitted something) but I'don't known what is it.
Can someone help me please ?

Regards,
Pierre