From c73ced691dda3845206dc2f43f23cbaff8a6dce6 Mon Sep 17 00:00:00 2001 From: Ben Cottrell Date: Sat, 17 Mar 2001 02:11:29 +0000 Subject: Fixed RT 938 having to do with SIOCGIFCONF on Linux. We now do a first pass in which we pass a null pointer for the buffer, and we will get back the length of the buffer we should allocate. This is because if you pass in a buffer that is too small, Linux (unlike other OSes) will not tell you that it is too small by returning a length greater than the length you passed in. --- includes/cf/linux.h | 1 + 1 file changed, 1 insertion(+) (limited to 'includes/cf/linux.h') diff --git a/includes/cf/linux.h b/includes/cf/linux.h index a01401e0..bdc0de6a 100644 --- a/includes/cf/linux.h +++ b/includes/cf/linux.h @@ -151,6 +151,7 @@ extern int h_errno; #define ALIAS_NAMES_PERMUTED #define SKIP_DUMMY_INTERFACES +#define SIOCGIFCONF_NULL_BUF_GIVES_CORRECT_LEN #ifdef NEED_PRAND_CONF #ifndef HAVE_DEV_RANDOM -- cgit v1.2.1