Is there any difference between libpcap's Packet buffer and wireshark's tvbuff ??? asked 23 Nov '12, 04:21 Akhil edited 23 Nov '12, 09:26 grahamb ♦ |
One Answer:
as that's totally different data structures, it might be better to ask if there is anything they have in common ;-). The only two things I can see:
What's the background of your question? Regards answered 23 Nov '12, 11:19 Kurt Knochner ♦ |
1.)Does both the buffers for a single packet point to the same memory location? 2.)Can wireshark dissector process packet buffer?
1)No
2)? Wireshark reads from a file and "loads" the data into a tvb.
1)Then what is the role of packet buffer?
2)From where does the packet comes into the file?
3)what is the name of the file?
1)You should ask the libpcap people that :-) http://www.tcpdump.org/pcap3_man.html
2)Somthing like this, but you should read the code to find out. Libpcap/WinPcap->dumpcap->"file"->Wireshark
3) It's a temp file with a unique file name prefixed with WS You can find the location from the menu bar help->About folders.