Ethereal-dev: Re: [Ethereal-dev] Problem with rdate

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

From: "Martin Regner" <martin.regner@xxxxxxxxx>
Date: Sun, 22 Feb 2004 08:35:29 +0100
Joerg Mayer wrote:
> As a small exercise, I've tried to write a dissector for the rdate
> protocol - and failed:
> When I start tethereal, it dies with the following message:
>
> ** ERROR **: file proto.c: line 2227 (proto_register_protocol): assertion
failed: (g_list_find_custom(protocols, name, proto_match_name) == NULL)
> aborting...
>


There is already a dissector registering with name "Time Protocol":

packet-time.c:
============
  proto_time = proto_register_protocol("Time Protocol", "TIME", "time");


So you have to do some change to your proto_register_protocol, e.g.
something like

 proto_rdate = proto_register_protocol("RDATE Time Protocol",
     "RDATE", "rdate");