From b9ae225b28f4707609e6436dad4be7ebdd7e181f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 6 Jun 1996 11:43:09 +0000 Subject: - added interface.c and removed all the references to myip, bcast_ip and Netmask, instead replacing them with calls to routines in interface.c - got rid of old MAXINT define - added code to ensure we only return one entry for each name in the ipc enum routines - added new_only option to add_netbios_entry() to prevent overwriting of important names - minor time handling fixup (This used to be commit 7ed71b73ae745da099072eee36fc2700d1d91407) --- source3/nmbsync.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source3/nmbsync.c') diff --git a/source3/nmbsync.c b/source3/nmbsync.c index 7e8cdd67e1..e86e8d53eb 100644 --- a/source3/nmbsync.c +++ b/source3/nmbsync.c @@ -22,14 +22,13 @@ #include "includes.h" #include "loadparm.h" -#include "localnet.h" +extern int ClientNMB; +extern int ClientDGRAM; extern int DEBUGLEVEL; extern pstring myname; -extern struct in_addr bcast_ip; -extern struct in_addr Netmask; extern int name_type; extern int max_protocol; @@ -114,7 +113,7 @@ static BOOL add_info(struct domain_record *d, struct work_record *work, int serv /* creates workgroup on remote subnet */ if ((w = find_workgroupstruct(d,sname, False))) { - if (ip_equal(bcast_ip, d->bcast_ip)) + if (ismybcast(d->bcast_ip)) { announce_request(w, d->bcast_ip); } -- cgit