[Click] simple_action

Eddie Kohler kohler at cs.ucla.edu
Wed Aug 24 17:31:36 EDT 2005


Does your PollNic element generate packets with IP header  
annotations?  CheckICMPHeader expects them.  Use CheckIPHeader/ 
MarkIPHeader to generate them.  CheckIPHeader may have failed because  
you didn't strip the Ethernet header first.

E


On Aug 24, 2005, at 4:46 AM, Andrushka wrote:

> Hello!
> Sorry for my English!
>
> I have such config:
> arp :: ARPResponder(192.168.0.1 52:54:00:12:34:56);
> in :: PollNic(0);
> out :: ToNic(0);
> icmp :: ICMPPingResponder;
> head :: CheckICMPHeader;
>
> in -> head;
> head[0] -> Print(ICMP) -> icmp -> out;
> head[1] -> Print(ARP) -> arp -> out;
>
>
> When i ping 192.168.0.1:
> 1. First go ARP request.
> 2. Click answer to ARP fine.
> 3. Next go ICMP request.
> But click all ICMP's requests send to head[1].
> Why ?
>
> In element.cc:846:
> void
> Element::push(int, Packet *p)
> {
>   p = simple_action(p);
>   if (p) output(0).push(p);
> }
>
> But after CheckICMPHeader all icmp request go to head[1] (not to
> head[0] ). Why ?
>
> If i change CheckICMPHeader to CheckIPHeader same things :(
>
> (PollNic and ToNic my own elements).
>
>
> Please help!
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>



More information about the click mailing list