Ethereal-dev: Re: [Ethereal-dev] New Dissector: Dumb Question

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

From: Alex Kirk <alex@xxxxxxxxxxxx>
Date: Mon, 24 Jan 2005 17:14:34 -0500
> That not sounds to bad for a first try, you've looked at the usual 
> suspects ;-)
> 
> So your question isn't too dumb at all...

Glad to hear it... :-)

> If the register.c file doesn't contain your dissector, that's the place 
> to look at first. Unless you build a plugin, it has to appear in that file.
> 
> Did you place your dissector file in epan/dissectors? It won't be 
> searched somewhere else.

Yes, I sure did. In fact, I was basing my dissector file partially on
packet-msn-messenger.c, which I've made some improvements to (I'll be submitting
them once I have the last bugs worked out there). The only difference is, that
file was already all registered, so I didn't have that problem there.

> Does it get (re-)compiled when you change your packet-wins.c (or 
> whatever name you'd chosen) file? So your makefile is ok.

No, there's no re-compiliation when I make changes to this file.

> Did you tried simply deleting the register.c file, as it's possibly 
> (re-)generated?

I just did this (for the second time, just to make sure), and I'm still getting
no results -- while packet-wins.c is in Makefile.common in epan/dissectors, my
registration function is not added to register.c.

I can attach Makefiles, the source file, whatever if it would be helpful; for
now I'll not spam the list. :-)

Alex Kirk