views:

322

answers:

1

Hello all,

I'm looking for a sample code for IP packet reassembly in C with libpcap*. Is IP packet defragmentation implemented in libpcap library officially? I've found this proposal : http://www.mail-archive.com/[email protected]/msg02991.html[this][1] .

Are there any implementation of defragmentation of IP packets.

[1]: http://www.mail-archive.com/[email protected]/msg02991.html [+]

*The reason for looking for the sample code is just for fun and learning and i don't want to spend too much time for writing code for IP packet reassembly.

+3  A: 

No, I'm pretty sure that the patch didn't make into libpcap. But you can do ip defragmentation (and also follow TCP streams) with libnids.

tsg
tsg,libnids uses raw unix sockets but i need an implementation with libpcap. Because i'm trying to learn libpcap and trying to build an experimental application with it. lwip also has packet reassembly/defragmentation feature.
systemsfault
After a brief look in the libnids code, it seems that it does use libpcap. See for example nids_pcap_handler().
tsg