[Click] how to test

=?gb2312?q?liang=20jian?= liang_7902 at yahoo.com.cn
Sat Aug 23 20:37:32 EDT 2003


hi,
 
A--Router--B
I need run :
#click-install udgen.click
on A machine and run:
#click-install udpcount.click 
on B machine
 
Yes or No?
Eddie Kohler <kohler at icir.org> wrote:
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;
 



---------------------------------
Do You Yahoo!?
ÆôÓõçÓÊÕʺţ¬Áì»áÑÅ»¢Í¨[ÉíÁÙÆä¾³ÁĵçÓ°]µÄ¶¯¸Ð÷ÈÁ¦£¬»¹ÓÐÍøÂçÉãÏñÍ·+ÑÅ»¢Í¨ÊÕÒô»úµÈÄãÀ´ÄÃ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://amsterdam.lcs.mit.edu/pipermail/click/attachments/20030823/ee546a05/attachment.htm


More information about the click mailing list