Example how to use TCPReassembly in pcapplusplus?

545 views Asked by At

I have to write TCP Reassembly code in c++. Can somebody please suggest me what is the most suitable library I can use with enough documentation. I tried [pcapplusplus][1] but in this library, I can't find documentation how to implement TCP reassembly, only the api reference.

https://github.com/seladb/PcapPlusPlus

So I am curious to know whelther you can give me an example tutorial on how to use pcapplusplus TCP Reassembly or there are are other such library available?

1

There are 1 answers

0
seladb On BEST ANSWER

Use TCP reassembly in PcapPlusPlus:

PcapPlusPlus contains a TCP reassembly example that shows how to use the API (you can also find this example in the documentation):

https://github.com/seladb/PcapPlusPlus/tree/master/Examples/TcpReassembly

Write your own implementation of TCP reassembly:

You can use the PcapPlusPlus TCP reassembly implementation as a reference:

https://github.com/seladb/PcapPlusPlus/blob/master/Packet%2B%2B/header/TcpReassembly.h https://github.com/seladb/PcapPlusPlus/blob/master/Packet%2B%2B/src/TcpReassembly.cpp