question on click

Eddie Kohler eddietwo at amsterdam.lcs.mit.edu
Fri Dec 8 08:06:11 EST 2000


Hi  Baris,

There are several ways to add an element to the Click router. There are two
easy ways, however. For both of them, you'll need to be dealing with the
Click-1.1b1 release or (even better) the anonymous CVS repository.

(1) Stick your elements in the elements/local directory. Patern-match the
source code with existing elements. For example, be sure to include an
EXPORT_ELEMENT(C++-class-name) statement in the .cc file.

Then, run ./configure with the --enable-local option.

(2) Take a look at the files in the etc/samplepackage directory. The
Makefile.in is self-documenting.

I would recommend you try (1) before (2).

Please let us know how it goes, and if you have any other questions!

love,
ed

> Received: from saga12.Stanford.EDU (saga12.Stanford.EDU [171.64.15.142])
> 	by amsterdam.lcs.mit.edu (8.10.1/8.10.1) with ESMTP id eB807M225272
> 	for <click at amsterdam.lcs.mit.edu>; Thu, 7 Dec 2000 19:07:22 -0500 (EST)
> Received: from localhost (inanb at localhost)
> 	by saga12.Stanford.EDU (8.9.3/8.9.3) with ESMTP id QAA25372
> 	for <click at pdos.lcs.mit.edu>; Thu, 7 Dec 2000 16:07:16 -0800 (PST)
> X-Authentication-Warning: saga12.Stanford.EDU: inanb owned process doing -bs
> Date: Thu, 7 Dec 2000 16:07:15 -0800 (PST)
> From: Baris Inan <inanb at stanford.edu>
> To: click at amsterdam.lcs.mit.edu
> Subject: question on click
> Message-ID: <Pine.GSO.4.21.0012071550200.24748-100000 at saga12.Stanford.EDU>
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> Hi,
> I have been taking a look at your click router lately, hoping that it
> will be helpful in our project here called TRIAD. I wrote a simple
> click element and compiled the .cc file using "click-compile". But, the
> click doesn't recognize this new element. 
> I want to know whether you have any documentation on how to add a new
> element to the module. 
> Thanks for the help.  
> 







More information about the click mailing list