I created a pull request on their github: https://github.com/NLnetLabs/nsd/pull/231
On Tue, Aug 30, 2022 at 04:33:10PM -0600, Todd C. Miller wrote: > On Wed, 31 Aug 2022 00:19:20 +0200, Moritz Buhl wrote: > > > On Tue, Aug 30, 2022 at 10:59:43PM +0200, Claudio Jeker wrote: > > > And nsd in base. It seems unbound does not use recvmmsg. > > > > After 'make -f Makefile.bsd-wrapper config' recvmmsg is picked up. > > The config compile test currently defines NONBLOCKING_IS_BROKEN > > because of a missing include. Then vlen for recvmmsg would always > > be 1. > > > > checking for struct mmsghdr... yes > > checking for recvmmsg... yes > > checking for sendmmsg... no > > ... > > checking if nonblocking sockets work... yes > > > > If anybody knows how to make nsd call nsd_recvmmsg this would > > make for some nice testing. > > Does this also fix the configure test? If so, we can submit it > upstream. > > - todd > > Index: acx_nlnetlabs.m4 > =================================================================== > RCS file: /cvs/src/usr.sbin/nsd/acx_nlnetlabs.m4,v > retrieving revision 1.7 > diff -u -p -u -r1.7 acx_nlnetlabs.m4 > --- acx_nlnetlabs.m4 24 Oct 2021 12:14:18 -0000 1.7 > +++ acx_nlnetlabs.m4 30 Aug 2022 22:31:48 -0000 > @@ -963,6 +963,9 @@ AC_LANG_SOURCE([[ > #ifdef HAVE_SYS_TYPES_H > #include <sys/types.h> > #endif > +#ifdef HAVE_SYS_SELECT_H > +#include <sys/select.h> > +#endif > #ifdef HAVE_SYS_SOCKET_H > #include <sys/socket.h> > #endif > Index: configure > =================================================================== > RCS file: /cvs/src/usr.sbin/nsd/configure,v > retrieving revision 1.56 > diff -u -p -u -r1.56 configure > --- configure 30 Jun 2022 10:49:39 -0000 1.56 > +++ configure 30 Aug 2022 22:32:08 -0000 > @@ -6593,6 +6593,9 @@ else > #ifdef HAVE_SYS_TYPES_H > #include <sys/types.h> > #endif > +#ifdef HAVE_SYS_SELECT_H > +#include <sys/select.h> > +#endif > #ifdef HAVE_SYS_SOCKET_H > #include <sys/socket.h> > #endif >
