summaryrefslogtreecommitdiffstats
path: root/source/nmbsync.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-06-06 11:43:09 +0000
committerAndrew Tridgell <tridge@samba.org>1996-06-06 11:43:09 +0000
commit7ed71b73ae745da099072eee36fc2700d1d91407 (patch)
tree9b0b7714443f6d105c7476324d5faa4aec5d90c4 /source/nmbsync.c
parent8eb701d0d6483d0f5c6de3640b38f98128cd321c (diff)
downloadsamba-7ed71b73ae745da099072eee36fc2700d1d91407.tar.gz
samba-7ed71b73ae745da099072eee36fc2700d1d91407.tar.xz
samba-7ed71b73ae745da099072eee36fc2700d1d91407.zip
- 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
Diffstat (limited to 'source/nmbsync.c')
-rw-r--r--source/nmbsync.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/nmbsync.c b/source/nmbsync.c
index 7e8cdd67e15..e86e8d53eb7 100644
--- a/source/nmbsync.c
+++ b/source/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);
}