summaryrefslogtreecommitdiff
path: root/source3/nmbsync.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nmbsync.c')
-rw-r--r--source3/nmbsync.c7
1 files changed, 3 insertions, 4 deletions
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);
}