2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-02 07:15:44 +00:00

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.
This commit is contained in:
Ben Cottrell
2001-03-17 02:11:29 +00:00
parent ed5ee59141
commit c73ced691d
2 changed files with 32 additions and 1 deletions

View File

@@ -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