Re: PATCH: Disallow a netmask of zero unless the IP is also all zeroes

From: Greg Sabino Mullane <htamfids(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PATCH: Disallow a netmask of zero unless the IP is also all zeroes
Date: 2025-02-11 22:30:45
Message-ID: CAKAnmmJLKuThQ-1mvF1Dd8HhE46xgm2uPNC3Nbm9C7gW+GOZUA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Feb 11, 2025 at 3:25 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> More generally, should we reject if the netmask causes *any* nonzero
> IP bits to be ignored? Our CIDR type already imposes that rule:
>

Yeah, I like that idea a lot. That's a great DETAIL message.

Cheers,
Greg

--
Crunchy Data - https://www.crunchydata.com
Enterprise Postgres Software Products & Tech Support

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2025-02-11 22:31:44 Re: describe special values in GUC descriptions more consistently
Previous Message Greg Sabino Mullane 2025-02-11 22:29:04 Re: Proposal: allow non-masked IPs inside of pg_hba.conf