I'm not sure I get you -- how are you saving these packets to a file?
If you save the results of libnet_adv_cull_packet() you should be able
to write it later using the same interface (libnet_adv_write_link())...
libnet_adv_cull_packet() calls libnet_pblock_coalesce() which performs
a malloc(). ...
If you save the results of libnet_adv_cull_packet() you should be able
to write it later using the same interface (libnet_adv_write_link())...
libnet_adv_cull_packet() calls libnet_pblock_coalesce() which performs
a malloc(). ...
[ more ]