Mon, 16 Sep 2002 17:16:06 +0200
I've added an option (TLV-format) to the advertisements sent by radvd.
It works if I determine the value hard-coded in the source code. Now I'd
like radvd to read my option-value from the radvd.conf-file, just as it
reads e.g. the prefix or HomeAgentInfo from this file.
In which way do I have to change the parser so that it will be able to
read the new option value from the radvd.conf?
Maybe anybody can tell me how this bison-parser works? The debugger
shows that during parsing the file /usr/lib/bison.simple is processed
(yyparse() is invoked), also several functions or arrayas in
radvd-0.9.1/lex.yy.c are invoked/read from time to time. And in y.tab.c
there exists also a function yyparse() in adition to huge arrays which
are needed by /usr/lib/bison.simple (yytranslate, yydefact,
It seems to me that I've to add my new option-value to these arrays, but
I don't know where exactly.
I'd be thankful for every hint.
Nathan Lutchansky schrieb:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On Mon, 26 Aug 2002, Gerrit Otte wrote:
> > who can give me a hint where I can find some documentation / comments to
> > the source code of radvd (v0.6.2)? I thinking of information that one
> > might add between /* */ in the source files.
> > Moreover, some information about which file / function provides which
> > functionality and how everything works together would be very helpful to
> > me. So I'd be thankful for any hint where I can find this information.
> There isn't really any documentation of the code; radvd is a pretty simple
> program so it shouldn't be difficult to understand the code. If you have
> specific questions about the code, I'm sure we can answer them here.
> - -Nathan