im making a c# packet analyzer that would open a pcap file which was created by wireshark…and load the packets into the graphical list.soo,how can i make sharppcap parse the file and show the packets(even in a console window) thanks
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is a sample that shows how to go about doing what you are asking for.
ReadFromFile
I used this about a year ago for a project I was working on. In the end, there was a issued with that library ( sorry, I cannot remember the exact details ). So in the end, I had to use WinPCap and pInvoke a native C++ library. But the open and display of the pcap file worked fine with SharpPcap