This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

how to get packet data from Pcap record dataMessage part?

0

Hello, i have a question, now i am programming a code to read the pcap file and make some measurements, i need information from the packet itself such as arrival time to the rcvr and src ip address, in order to get those information i have to access the PcapRecord data part right? ,now pcap doesn't understand these data so i cannot call a getSrcIP() method, now how do i access these packet data in the record data part? i really need this info and will appreciate any help :)

asked 23 Apr '15, 03:00

yas1234's gravatar image

yas1234
16182023
accept rate: 0%


One Answer:

0

Yes, timings are read from the per-packet headers. To get IP addresses (and other details) from the packet itself you need to parse it - that's what the Wireshark dissectors do.

answered 23 Apr '15, 11:18

Jasper's gravatar image

Jasper ♦♦
23.8k551284
accept rate: 18%