From 29d8c597fc0414658b6234b0bbc136670228e108 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 19 Apr 2011 10:02:55 +1000 Subject: [PATCH] lib/socket_wrapper: allow up to 32 interfaces for a bigger 'make test' The combined s3/s4 'make test' needs more interfaces. Andrew Bartlett --- lib/socket_wrapper/socket_wrapper.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c index 6eb4979d3fc..d70459ba087 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 /* -- 2.34.1