[Click] Questions on how-to debug elements && Click's kernellevel
properties
Beyers Cronje
bcronje at cs.co.za
Thu Mar 10 07:31:08 EST 2005
Hi Bita,
For one IP_Classifier output 0 is not configured.
-----Original Message-----
From: click-bounces at amsterdam.lcs.mit.edu
[mailto:click-bounces at amsterdam.lcs.mit.edu]On Behalf Of betamaz
Sent: Thursday, March 10, 2005 7:35 AM
To: click at amsterdam.lcs.mit.edu
Subject: Re: [Click] Questions on how-to debug elements && Click's
kernellevel properties
Hi,
Below is my configuration file. Also, is there anyway to output the
count to the screen using the Print element, or anyother element to
make testing easier?
Thank you,
Bita.
::::::::::::::
udpcount.click
::::::::::::::
// udpcount.click
AddressInfo(the_interface 128.111.40.200 00:0C:41:1F:9C:70);
classifier :: Classifier(12/0800 /* IP packets */,
12/0806 20/0001 /* ARP requests */,
- /* everything else */);
ip_classifier :: IPClassifier(dst udp port 1244 /* relevant UDP
packets */,
- /* everything else */);
in_device :: PollDevice(the_interface);
out :: Queue(200) -> ToDevice(the_interface);
to_host :: ToHost;
ctr :: Counter /* or AverageCounter */;
in_device -> classifier
-> CheckIPHeader(14, CHECKSUM false) // don't check checksum for
speed
-> ip_classifier
-> ctr
-> Print(ok:udp)
-> Discard;
classifier[1] -> ARPResponder(the_interface) -> out;
classifier[2] -> to_host;
ip_classifier[1] -> to_host;
::::::::::::::
udpgen.click
::::::::::::::
elementclass UDPGen {
$device, $rate, $limit, $size,
$seth, $sip, $sport, $deth, $dip, $dport |
source :: FastUDPSource($rate, $limit, $size, $seth, $sip, $sport,
$deth, $dip, $dport);
pd :: PollDevice($device) -> ToHost;
source -> td :: ToDevice($device);
}
// create a UDPGen
u :: UDPGen(eth0, 82000, 820000, 1500,
00:0C:41:1F:9C:8F, 128.111.40.189, 1234,
00:0C:41:1F:9C:70, 129.111.40.200, 1244);
_______________________________________________
click mailing list
click at amsterdam.lcs.mit.edu
https://amsterdam.lcs.mit.edu/mailman/listinfo/click
This is an email from Bytes Technology Group. It is confidential to the
ordinary user of the email address to which it is addressed
and may contain copyright and/or legally privileged information.
No one else may read, print, store, copy, forward or act in
reliance upon all or any part of it or its attachments. If you
received this email in error please notify its sender.
More information about the click
mailing list