Re: [PATCH net-next v2 1/6] netconsole: add an address family to struct inet_addr
From: Breno Leitao
Date: Tue Aug 11 2026 - 09:17:36 EST
On Mon, Aug 10, 2026 at 05:47:25PM +0100, Gustavo Luiz Duarte wrote:
> netconsole_target stores a single 'bool ipv6' to denote the target's
> address family. This makes it hard to detect conditions like "no address
> set" or ipv4/ipv6 mixup between local_ip and remote_ip.
>
> Add a 'family' field to inet_addr so each address stores its own address
> family: AF_UNSPEC while unset, else AF_INET or AF_INET6.
>
> Nothing reads the new field yet. The next patch switches the users over
> and removes the bool. No functional change.
>
> Signed-off-by: Gustavo Luiz Duarte <gustavold@xxxxxxxxx>
Reviewed-by: Breno Leitao <leitao@xxxxxxxxxx>