diff options
author | Ben Cottrell <source@isc.org> | 2001-03-17 02:11:29 +0000 |
---|---|---|
committer | Ben Cottrell <source@isc.org> | 2001-03-17 02:11:29 +0000 |
commit | c73ced691dda3845206dc2f43f23cbaff8a6dce6 (patch) | |
tree | 33dfba471cdc8eec7221738849e57bd3475ba684 /includes/cf/linux.h | |
parent | ed5ee59141f1bf91bf5016a3b0def64b4f4a2520 (diff) | |
download | isc-dhcp-c73ced691dda3845206dc2f43f23cbaff8a6dce6.tar.gz |
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.
Diffstat (limited to 'includes/cf/linux.h')
-rw-r--r-- | includes/cf/linux.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 |