Segmentation fault using the Packet::make(unsigned len) static function

Eddie Kohler kohler at icir.org
Wed Apr 3 15:10:54 EST 2002


Hi Shweta, sorry for the delay.

> 	Is there a lower limit on the size of a packet i can make using the
> Packet::make(unsigned payload) function? I want to send a packet of payload
> size 32 bytes.

There's no lower limit on the size of the payload. However, remember that
the data buffer will include extra space both before (headroom) and after
(tailroom) the payload itself. If the total buffer length is below 64 bytes
long, then Click will increase the tailroom until the size of the buffer is
64 bytes. See the programming manual for more info on headroom and
tailroom.

> the Packet::make works;  however now the problem that occurs is that after
> sending this packet out on Todevice(eth0), i get another packet from the
> kernel through the KernelTap element and while doing a Packet::make in that
> element, it segfaults at that point.

This sounds like a bug of some kind. Are you still seeing it? If so, can
you send more information?

Eddie



More information about the click mailing list