[Click] (no subject)

iaaaguru at tce.edu iaaaguru at tce.edu
Wed Aug 25 01:43:21 EDT 2010


prev post was on ip checksum element. it returns bad lengths. the
following is the configuration. elements after checksum elemnt are not
functioning. wats the error? help me


//classifying the IP packet based on starting hex 45 00
cl :: Classifier(14/45 , -);
//capturing packets from eth1
	FromDevice(eth1)
	->[0]cl;
	cl[0]->
//print org packets
	 Print(orig)
//stripping ether header
	-> Strip(14)
//printing altered packet
        ->Print(strp)
//altering contents
        ->StoreData(4,A)
//printf stripped packet
	->Print(stor)
//seting chksum
	 ->SetIPChecksum()
//ustriping packet
	 ->Unstrip(14)
	 ->Print(ustp)
	 -> Discard;
cl[1]-> Discard();


-----------------------------------------
This email was sent using TCEMail Service.
Thiagarajar College of Engineering
Madurai-625 015, India



More information about the click mailing list