Hi

Eddie Kohler kohler at aciri.org
Mon Jun 25 09:53:59 EDT 2001


Hi Robert,

> I'm enjoying using your excellent Click router.
> I'm now trying to add my own node - but have hit a snag!

Brecht's solution -- creating a "package" like etc/samplepackage -- is a
good one. It will make it (slightly) easier for you to update your main
Click distribution from time to time, and will reduce link times.

However, here is how to do it with elements/local, which has less startup
overhead than creating a package.

1. DO NOT edit the Makefile to add elements/local. Instead, supply the
   "--enable-local" argument to "configure".

2. Now run "make elemlist". This will update Click's master list of
   elements by searching the elements/ subdirectories for
   "EXPORT_ELEMENT()" statements. (Your element has an EXPORT_ELEMENT()
   statement, right? See any existing element for an example. The argument
   to EXPORT_ELEMENT is a C++ class name.)

3. Check "userlevel/elements.conf" and/or "linuxmodule/elements.conf" to
   see if your element has been included.

4. If so, you are ready to go! Just make install.

You are right that this should be documented better.

love,
ed



More information about the click mailing list