From 7bbec4d8714849a64b62e56e8fec390f4613e00d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Tue, 12 Dec 2017 22:32:09 +0100 Subject: s4: remove ipv6:enabled parameteric option this was never disabling ipv6, only v6-only interfaces. This can be achieved with the interfaces parameter also if wanted. Signed-off-by: Bjoern Jacke Reviewed-by: Andrew Bartlett --- source4/lib/socket/interface.c | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/source4/lib/socket/interface.c b/source4/lib/socket/interface.c index 963c0aac3dc..594df1a0526 100644 --- a/source4/lib/socket/interface.c +++ b/source4/lib/socket/interface.c @@ -75,8 +75,7 @@ static struct interface *iface_list_find(struct interface *interfaces, /**************************************************************************** add an interface to the linked list of interfaces ****************************************************************************/ -static void add_interface(TALLOC_CTX *mem_ctx, const struct iface_struct *ifs, struct interface **interfaces, - bool enable_ipv6) +static void add_interface(TALLOC_CTX *mem_ctx, const struct iface_struct *ifs, struct interface **interfaces) { char addr[INET6_ADDRSTRLEN]; struct interface *iface; @@ -94,10 +93,6 @@ static void add_interface(TALLOC_CTX *mem_ctx, const struct iface_struct *ifs, s return; } - if (!enable_ipv6 && ifs->ip.ss_family != AF_INET) { - return; - } - iface = talloc(*interfaces == NULL ? mem_ctx : *interfaces, struct interface); if (iface == NULL) return; @@ -153,8 +148,7 @@ static void interpret_interface(TALLOC_CTX *mem_ctx, const char *token, struct iface_struct *probed_ifaces, int total_probed, - struct interface **local_interfaces, - bool enable_ipv6) + struct interface **local_interfaces) { struct sockaddr_storage ss; struct sockaddr_storage ss_mask; @@ -170,7 +164,7 @@ static void interpret_interface(TALLOC_CTX *mem_ctx, for (i=0;i