Re: [PATCH net-next v2 1/6] netconsole: add an address family to struct inet_addr
Breno Leitao <[email protected]>
| Newsgroups | org.kernel.vger.netdev,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> Reviewed-by: Breno Leitao <[email protected]>