全部博文(230)
分类: 系统运维
2008-12-17 21:22:54
A packet returned by pcap_next_ex is valid until
- the next call to pcap_next_ex
- a call to pcap_close
(whatever comes first).
Packets returned by pcap_next_ex must not be freed. The library takes care
of freeing such memory.
Documentation: I suggest you to have a look at slide #4 in this presentation