December 2014

First timer

how to get the specific packet in an offline *.pcap file? And how to get the total number of an offline *.pcap file?

i wanna parse an offline *.pcap file, and meet the following problems.

how to get the specific packet in an offlien *.pcap file?

And how to get the total number of packets of an offline *.pcap file?

device name

i have a question on getting the device information with PcapIf

the way it provides me with the information now is like this.

#0: \Device\NPF_{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx} [Microsoft]
#1: \Device\NPF_{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx} [b][Microsoft][/b]
#2: \Device\NPF_{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx} [Microsoft]
#3: \Device\NPF_{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx} [Realtek PCIe GBE Family Controller]

The last adapter has a name which makes sence to me.

Adapter #1 on the other hand, I know its my dell wifi adapter: Dell Wireless 1704 802.11b/g/n (2,4GHz)

my problem is that jnetpcap does get the device information just like wireshark, but wireshark makes the translation the a usefull name such as Wi-fi and Ethernet.

So my question is: is there a way to get usefull names from the adapters, such as wireshark does?