]> git.ipfire.org Git - thirdparty/lldpd.git/commit - src/lldpd.c
Retrieve FD_SETSIZE in a sane environment.
authorVincent Bernat <bernat@luffy.cx>
Fri, 12 Mar 2010 11:03:24 +0000 (12:03 +0100)
committerVincent Bernat <bernat@luffy.cx>
Fri, 12 Mar 2010 11:16:53 +0000 (12:16 +0100)
commitbc598c23dc6141d69167a8bbfbd5f656cf5ccd2c
tree8d095fff2cb25c64e29766598c11b22a03c80faa
parent9df5ec3d783675d4ac91bd2953551d031a52e302
Retrieve FD_SETSIZE in a sane environment.

Since we import linux/if.h, in some environment, we may end up
importing kernel FD_SETSIZE that may be inappropriate (too large). For
example, on Sarge systems, FD_SETSIZE becomes 8192 instead of 1024 but
FD_ISSET is unable to handle this size.
configure.ac
m4/fdsetsize.m4 [new file with mode: 0644]
src/interfaces.c
src/lldpd.c