summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-04-19 10:02:55 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-04-19 10:03:49 +1000
commit29d8c597fc0414658b6234b0bbc136670228e108 (patch)
tree15c88350d812c16aaee3cf0572b46f8e78de1c81
parentbde2bcc8efd735d08b55ac3083d7b0f6490100d0 (diff)
downloadsamba-29d8c597fc0414658b6234b0bbc136670228e108.tar.gz
samba-29d8c597fc0414658b6234b0bbc136670228e108.tar.bz2
samba-29d8c597fc0414658b6234b0bbc136670228e108.zip
lib/socket_wrapper: allow up to 32 interfaces for a bigger 'make test'
The combined s3/s4 'make test' needs more interfaces. Andrew Bartlett
-rw-r--r--lib/socket_wrapper/socket_wrapper.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c
index 6eb4979d3f..d70459ba08 100644
--- a/lib/socket_wrapper/socket_wrapper.c
+++ b/lib/socket_wrapper/socket_wrapper.c
@@ -147,7 +147,10 @@
#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
/*