From bbbf9f13add12906480e6697eb56a2680dabe160 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 18 May 2009 10:32:27 +0200 Subject: 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 --- source3/include/interfaces.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/include') 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 -- cgit