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

Capture filters host vs net

0

What is the difference between host 172.18.5.4 and net 172.18.5.4?

asked 19 Aug '16, 08:48

stevenlberntsen's gravatar image

stevenlberntsen
6113
accept rate: 0%


One Answer:

2

They're the same thing. From the pcap-filters man page for the net primitive:

the netmask is 255.255.255.255 for a dotted quad (which means that it's really a host match),

answered 19 Aug '16, 09:00

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

edited 19 Aug '16, 09:01

That matches what I am seeing. Thanks for your help.

(19 Aug '16, 09:05) stevenlberntsen

If an answer has solved your issue, please accept the answer for the benefit of other users by clicking the checkmark icon next to the answer. Please read the FAQ for more information.

(19 Aug '16, 09:06) grahamb ♦