Re: Proposal to apply mask to IP address set on rule
Vadim Goncharov <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.network |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 23 May 2025 08:11:59 -0400 Michael Richardson <[email protected]> wrote: > Edgar Fuß <[email protected]> wrote: > >> It is extremely common to express a "subnet" as "addr/mask" and still > >> have non-zero host bits in the "addr" part. > > > Is it? I never use that. > > The advantage of doing so is that you no longer risk zeroing the wrong number > of bits when go from a /128 to the subnet that encloses it. v6: pretty > non-trivial to get right. Is it? As v6 has addresses in hex, it's simpler to apply calculations. > v4 with non-multiples of 8: saves many mistakes. -- WBR, @nuclight