[Click] copy of packet Tee(2) Segmentation , out of workclick list
sophia wright
wrightsophia119 at gmail.com
Wed Feb 12 11:32:09 EST 2014
Hello Mr Kohler,
i would be very happy if you can give me a solution in the problem that
i describe above.
i have implement my own element:rstPacket. My element rstPacket extract
from each input ip packet some info( dstIP, srcIP, etc) and create a Reset
TCP packet.
my current version works like this
myElem::rstPacket;
PreviewsElement[0] ->myElem[0]->nextElement //myElem[0] push the packet p
myElem[1]->otherElement; //myElem[1] push the new reset packet that is
created
this version is sequency,but it works normaly.
At this point i want to create a new version that the creation of RST
packet to be independent from the packet p. so i want to extract from a
packet but not to wait the .
so I tried to do this
t:: Tee(2);
PreviewsElement[0]->t;
t[0]->nextElement
t[1]->rstPacket->otherElement
The above gemeral idea is that , i create a clone of a packet p ,
so in the output port zero the packet p is routing normaly, without any
side effect
In the output port one i have a clone of packet, i used it to extract my
info and i create
th reset packets.
But it doesnt work, the router crash, at the point --- of Tee(2)
SEGMENTATION FAULT
Any IDEA ,how can run parallel an element ,or a function in my element??
General i want from a packet to extract some info, then the packet i want
to route normaly.
Any hint how to make it independence ????why this solution FAIL?
thank you in advance
PS : i tried to post my question on click list, but i think is down
More information about the click
mailing list