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

Hosts machine names used in Display filter macros?

0

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


One Answer:

0

Try

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

and see if this satisfies your needs

Regards Matthias

answered 24 Mar '16, 22:12

mrEEde's gravatar image

mrEEde
3.9k152270
accept rate: 20%