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

I have a hosts file with several IP addresses mapped to strings like VCG, VS, and VSTG (which are my server names). I have many display filter macros with these same IP addresses hard-coded into the macros.

Is there a way to use the same strings from my hosts file in my display filter macros? Thus eliminating the need for the hard-coding of the IP addresses?

Thanks.

asked 24 Mar '16, 19:49

rbw006's gravatar image

rbw006
6223
accept rate: 0%

edited 25 Mar '16, 03:53

grahamb's gravatar image

grahamb ♦
19.8k330206


Try

ip.host contains "VCG" or ip.host contains "VS"

and see if this satisfies your needs

Regards Matthias

permanent link

answered 24 Mar '16, 22:12

mrEEde's gravatar image

mrEEde
3.9k152270
accept rate: 20%

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:

×349
×91
×63
×22
×4

question asked: 24 Mar '16, 19:49

question was seen: 968 times

last updated: 25 Mar '16, 03:53

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