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.

mbuhl

Index: Makefile.bsd-wrapper
===================================================================
RCS file: /mount/openbsd/cvs/src/usr.sbin/nsd/Makefile.bsd-wrapper,v
retrieving revision 1.19
diff -u -p -r1.19 Makefile.bsd-wrapper
--- Makefile.bsd-wrapper        30 Jun 2021 11:50:22 -0000      1.19
+++ Makefile.bsd-wrapper        30 Aug 2022 22:09:46 -0000
@@ -22,6 +22,7 @@ CONFIGURE_OPTS=       --prefix=/usr \
                --with-xfrdfile=${CHROOTDIR}/run/xfrd.state \
                --with-libevent=/usr \
                --enable-ratelimit \
+               --enable-recvmmsg \
                --enable-root-server
 
 PROG=  nsd nsd-checkconf nsd-checkzone nsd-control
Index: configure
===================================================================
RCS file: /mount/openbsd/cvs/src/usr.sbin/nsd/configure,v
retrieving revision 1.56
diff -u -p -r1.56 configure
--- configure   30 Jun 2022 10:49:39 -0000      1.56
+++ configure   30 Aug 2022 22:04:41 -0000
@@ -6609,6 +6609,8 @@ else
 #include <time.h>
 #endif
 
+#include <sys/select.h>
+
 int main(void)
 {
        int port;

Reply via email to