[Click] How to ping response?

Egi, Norbert n.egi at lancaster.ac.uk
Mon Mar 12 16:05:03 EST 2007


Hi Jens,
 
Thanks very much for the answer. It works. I haven't recognized that I can use CheckIPHeader with offset, I found the EtherMirror element but didn't have the ETH header to mirror. :-(
 
Many thanks,
Norbert

________________________________

From: click-bounces at pdos.csail.mit.edu on behalf of Jens Mueller
Sent: Mon 3/12/2007 20:48
To: click at pdos.csail.mit.edu
Subject: Re: [Click] How to ping response?



Hi Norbert,

> I guess there should be a solution for this otherwise there wouldn't
> be an ICMPPingResponder element.
> 
> Could anyone tell me how a decently working ping responder looks like?

FromDevice(eth0)
// classify packets here
...
-> CheckIPHeader(14)
// maybe further classifying
-> ICMPPingResponder() //uses IP header annotation set by CheckIPHeader
-> EtherMirror() // swap src and dst
-> Queue()
-> ToDevice(eth0)

Did you notice that you can pass an offset to CheckIPHeader? I think
that would do the trick. Haven't tested it. I'm not sure, whether you
haven't just seen this or I'm giving a stupid answer.

Kind regards,
Jens
_______________________________________________
click mailing list
click at amsterdam.lcs.mit.edu
https://amsterdam.lcs.mit.edu/mailman/listinfo/click





More information about the click mailing list