Re: [PATCH] selftests/net: replace AF_MAX with INT_MAX in socket.c

From: David Miller
Date: Mon Sep 23 2019 - 04:51:18 EST


From: Marcelo Henrique Cerri <marcelo.cerri@xxxxxxxxxxxxx>
Date: Mon, 16 Sep 2019 12:03:37 -0300

> Use INT_MAX instead of AF_MAX, since libc might have a smaller value
> of AF_MAX than the kernel, what causes the test to fail.
>
> Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@xxxxxxxxxxxxx>

Definitely need to fix this differently.