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.