lib/socket_wrapper: allow up to 32 interfaces for a bigger 'make test'
authorAndrew Bartlett <abartlet@samba.org>
Tue, 19 Apr 2011 00:02:55 +0000 (10:02 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 19 Apr 2011 00:03:49 +0000 (10:03 +1000)
The combined s3/s4 'make test' needs more interfaces.

Andrew Bartlett

lib/socket_wrapper/socket_wrapper.c

index 6eb4979d3fc66d1243197b48034f04a679fe99a7..d70459ba0871e424fff9fef24a83181c5601c416 100644 (file)
 #define SOCKET_TYPE_CHAR_TCP_V6                'X'
 #define SOCKET_TYPE_CHAR_UDP_V6                'Y'
 
-#define MAX_WRAPPED_INTERFACES 16
+/* This limit is to avoid broadcast sendto() needing to stat too many
+ * files.  It may be raised (with a performance cost) to up to 254
+ * without changing the format above */
+#define MAX_WRAPPED_INTERFACES 32
 
 #ifdef HAVE_IPV6
 /*