Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2025 09:35:02 -0700
From:      Gleb Smirnoff <glebius@freebsd.org>
To:        Kristof Provost <kp@freebsd.org>
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: 7b0b4fca080e - main - pfctl: getifaddrs() can return entries where ifa_addr is NULL
Message-ID:  <aHaDNmXmdPaxJTEa@cell.glebi.us>
In-Reply-To: <202507151007.56FA7ug5027985@gitrepo.freebsd.org>
References:  <202507151007.56FA7ug5027985@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 15, 2025 at 10:07:56AM +0000, Kristof Provost wrote:
K> commit 7b0b4fca080e818e5cf2559453345b6057d33064
K> Author:     Kristof Provost <kp@FreeBSD.org>
K> AuthorDate: 2025-07-08 09:48:52 +0000
K> Commit:     Kristof Provost <kp@FreeBSD.org>
K> CommitDate: 2025-07-15 07:55:30 +0000
K> 
K>     pfctl: getifaddrs() can return entries where ifa_addr is NULL

Is this true on FreeBSD? The libc code sets what the route socket
returns and the latter always copies out kernel's ifa->ifa_addr
into info.rti_info[RTAX_IFA].  Can we have a in kernel a
struct ifaddr with NULL ifa_addr?

-- 
Gleb Smirnoff



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aHaDNmXmdPaxJTEa>