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

Hi, How can I create/customize display-filters depending on coming packets in away that is (automatically) applied every time I start capturing filters. Lets say I want to filter all packets that are coming to the network from IP: Thank you in advance,

asked 28 Oct '13, 14:11

OhudSaud's gravatar image

accept rate: 0%

Could you elaborate a bit, especially with your example, because I don't understand what it is you're asking for exactly.

With your example, you could use a capture filter of host to capture those packets of interest to you. But then you want some display filter to be automatically applied whenever you use that capture filter, is that right? If so, which display filter should be automatically applied in that case?

(28 Oct '13, 18:43) cmaynard ♦♦

I wanna use some kind of API where I can build filers that can color this IP without need to specify it. Like once the capturing started, Wireshark can color packets even though IPs are new to the network, if they some condition is true. Is there any possibility to do that? Thank you Chris,

(04 Nov '13, 13:29) OhudSaud

I'm sorry, but it is still unclear (at least for me) what you are trying to do.

Do you want to tell a running instance of Wireshark (via some API) to colorize traffic of a certain IP address, like:

  • Now colorize IP: with color RED
  • Now colorize IP: with color GREEN

If so: Why do you want to do that? What do you hope to see in the GUI that scrolls the incoming traffic?

If no: Please be more precise in the description of what you are trying to do.

Wireshark can color packets even though IPs are new to the network

What does that mean? 'New to the network'?

(04 Nov '13, 15:52) Kurt Knochner ♦
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: 28 Oct '13, 14:11

question was seen: 1,339 times

last updated: 04 Nov '13, 16:02

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