Skip to contentSkip to conversation

alter packet length

DISCUSSION Alessandro Rizzati 1 participant 1 message Feb 16, 2010

lore
Share & tools
lore
#0 lore raw

Hello everyone!!
I am using ip_queue (I know, it is deprecated...) and I want to modify the payload of the packet I get with ipq_get_packet(). My question is: how can I modify the length of the payload (altering ipq_packet_msg_t structure)? The use of realloc() end up at runtime with a "glibc detected.... realloc() invalid pointer..." when I execute my program...
Any hint?
The environment is ubuntu karmic 64 bit + gcc.

Thanks in advance!!
Alessandro