如何读取.pcapng文件并将其加载到c#.net中的datagridview中 [英] How do I read .pcapng file and load it into datagridview in c#.net
本文介绍了如何读取.pcapng文件并将其加载到c#.net中的datagridview中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
当我从ListBox中选择特定的.PCAPNG文件时,我想读取(src IP,src MAC,src Port,Dest IP,Dest MAC,Dest Port)等字段.PCAPNG文件(DATASET)并加载到C#.Net WindowsFormApplication中的DataGridView。
我没有得到如何为它编写代码。
请帮助我...
我尝试了什么:
用于阅读的名称空间.pcapng文件
Hello,
When I select particular .PCAPNG file from ListBox, then I want to read fields like (src IP, src MAC, src Port,Dest IP, Dest MAC, Dest Port) from .PCAPNG file (DATASET) and load into DataGridView in C#.Net WindowsFormApplication.
I'm not getting How to write code for it.
Please Help me...
What I have tried:
Which namespace to use for reading .pcapng file
推荐答案
这不是.Net直接支持的文件类型。您需要自己编写或使用第三方库。快速 Google搜索 [ ^ ]出现了一些解决方案,像这样一个:
GitHub - ryrychj / PcapngUtils:C#完全托管实现Pcap / PcapNG文件格式 [ ^ ]
This is not a file type supported directly by .Net. You will need to write your own or use a 3rd-party library. A quick Google Search[^] turns up a few solutions, like this one:
GitHub - ryrychj/PcapngUtils: C# full managed implementation Pcap/PcapNG file format[^]
这篇关于如何读取.pcapng文件并将其加载到c#.net中的datagridview中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文