From 4eba893b02334953b0f1bc082dcba6f930f9ff80 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 8 Jun 1996 04:33:37 +0000 Subject: - added comments to byteorder.h explaining how it works. - fixed problem with installscripts if srcdir is not set - fixed ptr init bug in interface.c - changed default lookup type in nmblookup to match nbtstat under NT - new quotas fixes for sunos and solaris (This used to be commit e775576f026d282473256aeac6fef65a85acd98e) --- source3/lib/interface.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/lib/interface.c') diff --git a/source3/lib/interface.c b/source3/lib/interface.c index f2a535d80c..e93db5e57e 100644 --- a/source3/lib/interface.c +++ b/source3/lib/interface.c @@ -25,6 +25,7 @@ extern int DEBUGLEVEL; struct in_addr ipzero; +struct in_addr ipgrp; static struct in_addr default_ip; static struct in_addr default_bcast; static struct in_addr default_nmask; @@ -266,6 +267,7 @@ void load_interfaces(void) struct in_addr ip; ipzero = *interpret_addr2("0.0.0.0"); + ipgrp = *interpret_addr2("255.255.255.255"); while (next_token(&ptr,token,NULL)) { /* parse it into an IP address/netmasklength pair */ @@ -315,6 +317,8 @@ void load_interfaces(void) iface = (struct interface *)malloc(sizeof(*iface)); if (!iface) return; + iface->next = NULL; + if (got_ip) { iface->ip = default_ip; } else { -- cgit