Hi to all, After merge 2 two pcap with the command "mergepcap -a 1.pcap 2.pcap -w result.pcap" the output from TShark and Wireshark is different. In detail, if i open the result.pcap with TShark with this command, /usr/bin/tshark -r result.pcap -T fields -e tcp.stream -e frame.time -e tcp.checksum -R "tcp" | grep ".02696400" | more The result is "20 Dec 15, 2011 11:12:20.026964000 0xf3a8" When i open the result.pcap with Wireshark and the filter is tcp.stream eq 20 i don't have any record. The same packet (Dec 15, 2011 11:12:20.026964000 0xf3a8) is visible if i put in the filter of wireshark "tcp.stream eq 56". Why ???? i wrong when merge 2 pcap files ? asked 11 Jan '12, 05:38 fcafra |
One Answer:
I doubt that the issue has anything to do with mergecap.
For example: I don't specifically know why you get different results for Do you get a different stream value if you remove the answered 12 Jan '12, 08:31 Bill Meier ♦♦ |
Thank's Bill for your response, i try to remove -R tcp but the result is not change... i have the same error.
Maybe, wireshark adjust the field tcp.stream when loading the pcap file... it's possible this ?
and if correct this answer, there is a tshark method or another method to adjust tcp.stream field when i try to load entire pcap file ?
I understand the problem.
if i launch tshark version TShark 1.6.5 it's all ok....
when i try, i have use tshark 1.2.7....
Sorry, and.. thank's...
(I converted your answer to a comment, please see the FAQ for details)
Yes, the way tcp.stream numbers are generated has changed between 1.2.7 and 1.6.5
Thank's SYNbit and sorry :)
Can i ask another question here ?
If "here" means "on the ask.wireshark.org" site, yes, you can ask another question here.
If "here" means "as a comment on this answer", then, while the site's software doesn't prevent that, you really shouldn't do that - Q&A sites such as this really work best if each question is asked separately, so that another user with the same or a similar question can more easily find a question. (Note that Q&A sites, such as this, aren't forums.)