This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Hi,

Is is possible to set the comment for an individual packet using tshark? I see in the man page this can be done for the capture comment with --capture-comment <comment> but is there a way to specify an individual packet by packet number?

Many Thanks

asked 21 Jun '15, 10:37

Marv's gravatar image

Marv
31226
accept rate: 0%


No, you can't do that with tshark (not implemented). However, you can add packet level comments in Wireshark (right click a frame and choose "Packet comment") and then save the file as a pcapng to preserve the comments.

Regards
Kurt

permanent link

answered 21 Jun '15, 10:51

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 21 Jun '15, 10:53

Thanks Kurt,

It would be great if tshark could do this, I wonder if this will be available in later versions?

Cheers

(22 Jun '15, 11:42) Marv

I don't know. There is no feature "roadmap" for Wireshark. So, if you need this feature please file an enhancement but at https://bugs.wireshark.org and hope that somebody has time to implement it. I think it should be a feature for editcap, instead of tshark.

(22 Jun '15, 13:35) Kurt Knochner ♦

Had a chat with Martin about this at Sharkfest, he very kindly added this to editcap with the -a option:

-a <framenum>:<comment> Add or replace comment for given frame number

https://github.com/wireshark/wireshark/commit/dd16c55e9f830e6febf5484a7a71ca0abd05bf16

Cheers

(30 Jun '15, 15:11) Marv
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×832
×5
×3

question asked: 21 Jun '15, 10:37

question was seen: 1,195 times

last updated: 30 Jun '15, 15:11

p​o​w​e​r​e​d by O​S​Q​A