summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-18 10:32:27 +0200
committerVolker Lendecke <vl@samba.org>2009-05-18 13:38:55 +0200
commitbbbf9f13add12906480e6697eb56a2680dabe160 (patch)
treeeb7e7ef800154d0a862231038431d4bccb821ceb /source3/include
parent67a2e629919bdc5a783e64636890fec2a7dfa9f8 (diff)
downloadsamba-bbbf9f13add12906480e6697eb56a2680dabe160.tar.gz
samba-bbbf9f13add12906480e6697eb56a2680dabe160.tar.bz2
samba-bbbf9f13add12906480e6697eb56a2680dabe160.zip
Fix bug 5681: Do not limit the number of network interfaces
Jeremy as far as I can see there is no real technical reason to limit the number of interfaces. If you like this patch, can you please merge it to 3.4? If you don't please tell me :-) Thanks, Volker
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/interfaces.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/include/interfaces.h b/source3/include/interfaces.h
index 9a19c33b57..6ba0e21f6d 100644
--- a/source3/include/interfaces.h
+++ b/source3/include/interfaces.h
@@ -27,8 +27,6 @@
#include "../replace/replace.h"
#include "../replace/system/network.h"
-#define MAX_INTERFACES 128
-
struct iface_struct {
char name[16];
int flags;
@@ -46,6 +44,6 @@ void make_bcast(struct sockaddr_storage *pss_out,
void make_net(struct sockaddr_storage *pss_out,
const struct sockaddr_storage *pss_in,
const struct sockaddr_storage *nmask);
-int get_interfaces(struct iface_struct *ifaces, int max_interfaces);
+int get_interfaces(TALLOC_CTX *mem_ctx, struct iface_struct **pifaces);
#endif