I just installed ubuntu 14.04 and immediately installed tshark on it (ver TShark 1.10.6 (v1.10.6 from master-1.10). The problem is, tshark doesn't display the packet as HTTP request (packet 4). This works fine on another PC I have. Here is link to the pcap file. I know HTTP request span over multiple data packets, wonder if there is a way to make tshark display the first such data as the HTTP request (instead of the last such data packet)?
asked 21 Jul '15, 09:10 pktUser1001 |
2 Answers:
Most likely, the other PC has the TCP preference to "Allow subdissector to reassemble TCP streams" turned off while your Ubuntu 14.04 PC's Wireshark has it turned on. You can turn it off permanently in Wireshark via:
All Wireshark (and tshark) preferences are located in your answered 21 Jul '15, 09:33 cmaynard ♦♦ |
As Chris Maynard says, the only way to do this currently is to turn off TCP reassembly. It might be possible to enhance Wireshark and TShark to have an option to show the reassembly on the first packet, although such an option will only work in TShark, as opposed to Wireshark, if you use the answered 21 Jul '15, 16:44 Guy Harris ♦♦ Thanks Guy. I like your suggestion. I would be happy if I know what configure file to edit manually since I don't have a wireshark installation right now (target host is a server). (22 Jul '15, 14:39) pktUser1001 If, as, and when we ever implement that enhancement, we'll document the name of the preference that would control that. If you just mean "the option to turn off TCP reassembly", it's "tcp.desegment_tcp_streams", and you turn it off with the Wireshark/TShark command-line option (22 Jul '15, 15:05) Guy Harris ♦♦ Thanks again. I didn't notice the tshark command Chris put there. Now it's working well for me. (22 Jul '15, 20:34) pktUser1001 |
Thanks Chris for the reply. I installed tshark on the server (not wireshark). Wonder if there is a way to turn off reassemble TCP streams on command line?
Yes, I gave it above. Use
-o tcp.desegment_tcp_streams:FALSE
.Thanks Chris again. It works. Sorry didn't notice the tshark command you put there.