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


I would like to add comment inside the "packet comments" field of pcapng using a script.

Use case would be something like: if dns.ttl < 120 sec: add_comments("Short TLL")

I've been reading and it's probably doable using a LUA script but before today I never wrote a line of LUA. I would like to know if it is indeed doable and if someone could send me in the right direction to get that done.


asked 22 May '13, 20:35

x0r's gravatar image

accept rate: 0%

I guess you want to highlight certain packets that way - have you thought about using coloring rules for something like this?

(23 May '13, 05:27) Jasper ♦♦
Be the first one to answer this question!
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: 22 May '13, 20:35

question was seen: 3,241 times

last updated: 23 May '13, 05:27

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