[Click] head- and tailroom

David Biot david.biot at scarlet.be
Mon Apr 16 21:08:21 EDT 2007


Hello,

My click-router adds an IP-header in front of every packet and appends 4
bytes of data to the end of the packet.

Now I sometimes get a message like
expensive Packet::push; have 12 wanted 14
or
expensive Packet::put; have 0 wanted 4

Now I understand that this means that there isn't enough head- and tailroom
to add the required data. All in all it's probably not all too important
because I don't get a lot of these warnings. I get 5 times the message

expensive Packet::push; have 12 wanted 14

in the beginning and just recently saw the line 

expensive Packet::put; have 0 wanted 4

on a total of over a million packets. Now of course I would like to make
sure these warnings disappear. Is it possible to ask fromdevice/polldevice
to allocate more head-and tailroom? I couldn't find it in the configuration
options.

Is also click adapting to the memory-usage? I find it strange that I only
get these warnings at the beginning.

David Biot

PS: Sorry for the previous unfinished mail. I accidently pressed ctrl-enter
which sends de mail.



More information about the click mailing list