3

is there a c++ opensource library for parsing capturing packets with winpcap specificly the tcp header and data ?

brian
  • 61
  • 1
  • 4

2 Answers2

1

You should be able to adapt the source code of Wireshark or tcpdump. Both are open source.

Zan Lynx
  • 53,022
  • 10
  • 79
  • 131
1

There is libpacketdump which is part of the libtrace networking suite.

According to it's makers, it is

libpacketdump provides decoders to dump the contents of packets in human readable form

Be sure to check the license (I haven't)

Project webpage

http://www.wand.net.nz/trac/libtrace/

MSDN.WhiteKnight
  • 664
  • 7
  • 30
sehe
  • 374,641
  • 47
  • 450
  • 633