0

I can display the source and destination tcp ports with

tshark -T fields -e tcp.port
1111,2222
2222,1111
[...]

How can I display only the source port in order to get

1111
2222
3

Like this

tshark -e tcp.srcport -T fields
  • And the way to find it - is via tshark -G. This will print all possible supported fields and then you just search in the output field that interests you – Dmitry Zayats Nov 11 '16 at 23:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.