Le 19/01/2025 à 05:41, deller@kernel.org a écrit :
> From: Helge Deller <deller@gmx.de>
>
> Fixes this warning:
> Unknown host IFA type: 11
>
> Signed-off-by: Helge Deller <deller@gmx.de>
> Reviewed-by: Laurent Vivier <laurent@vivier.eu>
> ---
> linux-user/fd-trans.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/linux-user/fd-trans.c b/linux-user/fd-trans.c
> index c04a97c73a..a86ed2f4b4 100644
> --- a/linux-user/fd-trans.c
> +++ b/linux-user/fd-trans.c
> @@ -1140,6 +1140,7 @@ static abi_long host_to_target_data_addr_rtattr(struct rtattr *rtattr)
> /* binary: depends on family type */
> case IFA_ADDRESS:
> case IFA_LOCAL:
> + case IFA_PROTO:
> break;
> /* string */
> case IFA_LABEL:
Stefan has reported that it breaks build on ubuntu 22.04.
IFA_PROTO has been introduced in kernel v5.18.
I think you should define QEMU_IFA_XXXX enum as it was done for QEMU_IFLA_XXX, QEMU_RTA_XXX,...
Thanks,
Laurent