[Click] Problem when running click with adding a new element

yacine.djemaiel yacine.djemaiel at laposte.net
Sat Oct 16 03:57:05 EDT 2004


Hi,
I am trying to familiarize with click by building a new
element. Following Mr. Eddie Kohler's thesis i have succeeded
to add a new element that forward packets without handle them.
In the next step, i have tried to manipulate the click_ip
class so i call a new method in the pull method, the content
of this method is :

Packet *
NewElement::treat_packet(int port, Packet *p)
{

const click_ip *iph = p->ip_header();
if (iph->ip_p != IPPROTO_TCP) click_chatter("Non TCP
trafic");
else return p;
return p;
}

When running click with the following config, i obtain this
error message :
Segmentation fault

config used : FromDevice(eth0)->NewElement->Discard;

i have added a Queue, before the NewElement but i have
received the same error.

Thanks in advance,

Yacine Djemail


Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






More information about the click mailing list