Can libpcap reassemble TCP segments

后端 未结 4 1710
南笙
南笙 2021-01-20 05:30

I need to sniff TCP traffic into my application.

Can libpcap reassemble TCP segments or I have to do it manually?

The home page says \"Full documentation is

4条回答
  •  萌比男神i
    2021-01-20 06:06

    Three years ago I used libpcap and I had to reassemble TCP streams myself, it's not very difficult but it's full of corner cases.

    You may look at wireshark dissectors and «follow TCP stream» option if license (GPLv2) is ok for your project.

提交回复
热议问题