[Click] how to test

Eddie Kohler kohler at icir.org
Fri Aug 22 15:28:47 EDT 2003


Hi,

> I compile udpgen.c udpcount.c on kernel 2.4.20 have a lot of error!
> when compile them on 2.2.18 then 
> insmod udpcount.o have:
> udpcount.o: unresolved symbol udpcount_hook
> error!
>  
> I don't know how to compile udpgen on 2.4.20?
>  
> can you help me ?

udpgen.c and udpcount.c are no longer supported because we use straight
Click configurations instead. You can find the udpgen-equivalent in
CLICK/conf/udpgen.click. I've just checked in a udpcount-equivalent, to
CLICK/conf/udpcount.click; it is also attached.

Let us know if you have problems/...
Eddie

// udpcount.click

// This file is a simple UDP/IP packet counter, meant to be used in the
// Linux kernel module. It counts UDP packets received on port 1234. (Change
// the argument to 'ip_classifier' to use a different port.) See
// 'udpgen.click' for a traffic generator corresponding to udpcount.click.

// The interface's hardware and IP addresses go here.
AddressInfo(me 1.0.0.1 0:0:c0:8a:67:ef);

classifier	:: Classifier(12/0800 /* IP packets */,
			      12/0806 20/0001 /* ARP requests */,
			      - /* everything else */);
ip_classifier	:: IPClassifier(dst udp port 1234 /* relevant UDP packets */,
				- /* everything else */);
in_device	:: PollDevice(me);
out		:: Queue(200) -> ToDevice(me);
to_host		:: ToHost;
ctr		:: Counter /* or AverageCounter */;

in_device -> classifier
	-> CheckIPHeader(14, CHECKSUM false) // don't check checksum for speed
	-> ip_classifier
	-> ctr
	-> Discard;
classifier[1] -> ARPResponder(me) -> out;
classifier[2] -> to_host;
ip_classifier[1] -> to_host;



More information about the click mailing list