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

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Greg Sabino Mullane <htamfids(at)gmail(dot)com>, PostgreSQL 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 21:06:07
Message-ID: 05AA710F-37AE-4FBC-9999-6A328DE5B916@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

> I'm a bit distressed to realize that hba.c isn't using cidr_in.
> Maybe we should try to share code instead of duplicating yet more.

+1. I have a note along these lines on my never-shrinking TODO, I think it
would be great if we took a stab at that.

--
Daniel Gustafsson

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2025-02-11 21:14:21 Re: Bump soft open file limit (RLIMIT_NOFILE) to hard limit on startup
Previous Message Tom Lane 2025-02-11 20:46:43 Re: explain analyze rows=%.0f