[Click] Segmentation Faults with IPClassifier

Roman Chertov rchertov at purdue.edu
Fri Jun 8 16:27:42 EDT 2007


I think you need a CheckIPheader element there as well as a Strip. 
Packets from FromDevice come in with Ethernet headers and IP elements 
expect the very first byte to be of the IP header.

FromDevice(eth0)
-> Strip(14)
-> CheckIPHeader2(0)
-> Filter[0]
-> Discard();

Roman

dmoore7 at nd.edu wrote:
> Hello,
> I am attempting to build basic click configurations, and work up, but am having
> trouble building fairly straightforward systems.  For example:
> 
> Filter ::  IPClassifier(dst 129.74.20.20, true)
> FromDevice(eth0) -> Filter[0] -> Discard();
> Filter[1] -> Print(ok) -> Discard();
> 
> Here 129.74.20.20 is my machine's address.  This configuration causes a
> segmentation fault, with no errors otherwise.  If I flip the two filters,
> putting "true" first, then it builds and runs without error.
> 
> What am I doing wrong?
> Any input is appreciated.
> Thanks,
>  - David Moore
> 
> 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> 



More information about the click mailing list