how to use libwireshark to parse the pcap captured packets ?

asked 2019-08-27 05:22:49 +0000

vikrant gravatar image

Above mentioned link gives some clues of how to use libwireshark to parse the captured packets but I am failed to compile it.

Could someone have better solution for it?

I want to parse enip/cip packets using c programming.

Thanks !!

edit retag flag offensive close merge delete


Not sure I get it. Wireshark has dissectors for enip and cip I think. Can't you use/extend them?

Anders gravatar imageAnders ( 2019-08-27 06:16:21 +0000 )edit

I want to develop proprietary solution & that's why I want to take advantage of already available parsing logic using libwireshark

vikrant gravatar imagevikrant ( 2019-08-27 06:22:44 +0000 )edit

libwireshark isb't really built to be a standalone library so you are probably on your own figuring out how to use it. Note that you would have to GPL your solution.

Anders gravatar imageAnders ( 2019-08-27 06:55:52 +0000 )edit