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

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%


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),

permanent link

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 ♦
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:

×184

question asked: 19 Aug '16, 08:48

question was seen: 1,026 times

last updated: 19 Aug '16, 09:06

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