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


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

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.


permanent link

answered 21 Jun '15, 10:51

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
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?


(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 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


(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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 21 Jun '15, 10:37

question was seen: 1,426 times

last updated: 30 Jun '15, 15:11

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