0
votes

I have a great confusion about tshark.

What is the basic unit of the messages captured by tshark? Ip, tcp, or http? I see TCP http or ssl and so on in the protocol column in wireshark.

These protocols are in different layer.

In addition, what is the tshark command to capturing the http message with tshark.

1

1 Answers

0
votes

See the man page. To quote:

TShark is a network protocol analyzer. It lets you capture packet data from a live network, or read packets from a previously saved capture file

Packets are usually either TCP or UDP (you can find a list of protocols here), When wireshark states that it is HTTP or SSL, then it is based on introspection of the packet (Probably based on destination port).