Correct syntax:
$ tshark -r test.pcap -R "frame.number<6" -o column.format:""No.","%m", "tcp.port", "%Cus:tcp.port", "udp.port", "%Cus:udp.port""
1 55556,53
2 53,55556
3 1685,80
4 80,1685
5 1685,80
I get an error message, when I make a typo: %Cu:udp.port (instead of %Cus:udp.port)
$ tshark -r test.pcap -R "frame.number<6" -o column.format:""No.","%m", "tcp.port", "%Cus:tcp.port", "udp.port", "%Cu:udp.port""
tshark: Invalid -o flag "column.format:No.,%m, tcp.port, %Cus:tcp.port, udp.port, %Cu:udp.port"
Why don't I get messages for the following typo's?
$ tshark -r test.pcap -R "frame.number<6" -o column.format:""No.","%m", "tcp.port", "%Cus:tcp.port", "udp.port", "%Cust:udp.port""
1
2
3 1685,80
4 80,1685
5 1685,80
$ tshark -r test.pcap -R "frame.number<6" -o column.format:""No.","%m", "tcp.port", "%Cus:tcp.port", "udp.port", "%Custttttttttttttt:udp.port""
1
2
3 1685,80
4 80,1685
5 1685,80
asked 16 Jul ‘11, 00:41
joke
1.3k●4●9●34
accept rate: 9%
I will file a bug.
Thanks.
Done:
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6131
The bug is fixed.
Thanks to Stig:
Added a fix in revision 38064.
Scheduled for 1.4.8 and 1.6.1.
You can download automated build 38064 here