0

I want to get access to analyzed packet layer information (that tshark does very well) in a C program.

Is there a library interface for tshark that can be used to gather analysis information from packets of a pcap file?

PS: Higher layer languages is not an option for me. I have it working with pyshark (Python) but is too slow for my need(pyshark invokes tshark command line and processes the response json). I need a way to directly get tshark output to my C program.

Bhakta Raghavan
  • 664
  • 6
  • 16

1 Answers1

2

You probably will want libpcap for this, if I understand the question correctly.

schaiba
  • 362
  • 3
  • 11