[Click] Problem of the tutorial1

Eddie Kohler kohler at cs.ucla.edu
Tue Feb 19 02:51:31 EST 2008


Hi Yanfeng,

What type of machine is this?  x86 compatible, or something like Sparc?  This 
works fine for me with current git sources.

Eddie


Yanfeng Zhang wrote:
> Hi
> 
> I am a freshman to click.
> 
> When learning click through the tutorial published on the website("
> http://www.read.cs.ucla.edu/click/tutorial1"), an error came up.
> 
>  It is at the step 3, and I followed its solutions to write click
> configuration file just like this:
> 
>> FromDump(f3a.dump, STOP true)
>>      -> CheckIPHeader
>>      -> i1 :: IPClassifier(tcp, udp, icmp, -)
>>      -> CheckTCPHeader
>>      -> ttl :: IPClassifier(ttl > 0, -)
>>      -> cl :: CheckLength(1500)
>>
>>      -> ip :: IPClassifier(dst 131.179.0.0/16, dst 131.0.0.0/8, dst 18.0.0.0/8, -)
>>
>>   i1[1] -> CheckUDPHeader -> ttl
>>
>>   i1[2] -> CheckICMPHeader -> ttl
>>   i1[3] -> ttl
>>   ttl[1] -> ICMPError(18.26.7.1, timeexceeded, transit)
>>      -> ToDump(f3f.dump, ENCAP IP)
>>
>>   ip[0] ->  ToDump(f3c.dump, ENCAP IP)
>>
>>   ip[1] ->  ToDump(f3b.dump, ENCAP IP)
>>   ip[2] ->  ToDump(f3d.dump, ENCAP IP)
>>   ip[3] ->  ToDump(f3e.dump, ENCAP IP)
>>
>> However, an error as follows came up when running makefile.
> 
> [root at threewells click-tutorial1]# make
>> --- Problem 1 Success: f1a.dump == f1b.dump
>> --- Problem 2 Success: f2b.dump == good/f2b.dump
>> --- Problem 2 Success: f2c.dump == good/f2c.dump
>> --- Problem 2 Success: f2d.dump == good/f2d.dump
>> --- Problem 2 Success: f2e.dump == good/f2e.dump
>> TCP header check failed: bad TCP checksum
>> UDP header check failed: bad UDP checksum
>> ICMP header check failed: bad ICMP checksum
>> CheckIPHeader at 2: IP header check failed: bad IP length
>> --- Problem 3 Success: f3b.dump == good/f3b.dump
>> --- Problem 3 Success: f3c.dump == good/f3c.dump
>> --- Problem 3 Success: f3d.dump == good/f3d.dump
>> --- Problem 3 Success: f3e.dump == good/f3e.dump
>> /bin/sh: line 8:  3976 Segmentation fault      click -e "FromDump(f3f.dump,
>> STOP true) -> StoreData(12, \<00000000>) -> SetIPChecksum -> ToDump(
>> f3f-z.dump, ENCAP IP)"
>> make: *** [check-prob3] Error 139
>>
> 
> 
> I ensured that the problem was at the red color word "SetIPChecksum", for
> there was no segmentation fault error occurred after removing that process,
> but it is not the right tcpdump file.
> 
> How should I resolve this problem?
> 
> Thank you in advance! Really expect your reply.
> 
> 
> Regards
> -Yanfeng
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list