Wireshark-dev: Re: [Wireshark-dev] mikey configuration option
From: "Kukosa, Tomas" <tomas.kukosa@xxxxxxxxxxx>
Date: Tue, 2 Oct 2007 15:45:37 +0200
> > module_t *mikey_module;
> > mikey_module = prefs_register_protocol(proto_mikey,  
> > proto_reg_handoff_mikey);
> > prefs_register_uint_preference(mikey_module, "UDPPort", 
> "UDPPort", "UDP 
> > Port (default 4369)", 10, &mikey_udpport);
> > 
> > during the compiling there are some assertion failing.
> > 
> > Could somebody help me on this please ?
> 
> Well, what does the assertion say?
> 
> One guess: the name of the preference should start with your protocol 
> name.  It should be something like "mikey.UDPPort" instead of just 
> "UDPPort".


No, the preference name MUST NOT start with protocol name. (see
prefs.c:579)

And the prefernce can contain only lowercase letters or digits or dot or
underscore. (see prefs.c:562)

Try:
prefs_register_uint_preference(mikey_module, "udp.port", "UDP Port",
"UDP Port (default 4369)", 10, &mikey_udpport);