summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-07-22 14:32:38 +0000
committerAndrew Tridgell <tridge@samba.org>1996-07-22 14:32:38 +0000
commit234b8c602209d966c5b82148b521d9711e08c4b3 (patch)
tree7e42d2e738a9dc9a7a060083713d94e8ddce1c7f /source3
parent1c2ab212d96bbd642fd230b117c9940dae5e3767 (diff)
downloadsamba-234b8c602209d966c5b82148b521d9711e08c4b3.tar.gz
samba-234b8c602209d966c5b82148b521d9711e08c4b3.tar.bz2
samba-234b8c602209d966c5b82148b521d9711e08c4b3.zip
removed the remote interfaces stuff.
(This used to be commit 51e5a1a546adf6ba36c7e4c3298c651cff7e15b9)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/nameserv.h2
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/lib/interface.c8
-rw-r--r--source3/nameannounce.c2
-rw-r--r--source3/namedbserver.c2
-rw-r--r--source3/namedbsubnet.c28
-rw-r--r--source3/namedbwork.c7
-rw-r--r--source3/nameelect.c21
-rw-r--r--source3/nameserv.c2
-rw-r--r--source3/namework.c2
-rw-r--r--source3/nmbsync.c5
-rw-r--r--source3/param/loadparm.c3
12 files changed, 18 insertions, 65 deletions
diff --git a/source3/include/nameserv.h b/source3/include/nameserv.h
index b634250c81..7a97097e78 100644
--- a/source3/include/nameserv.h
+++ b/source3/include/nameserv.h
@@ -251,8 +251,6 @@ struct subnet_record
struct in_addr bcast_ip;
struct in_addr mask_ip;
struct in_addr myip;
-
- BOOL my_interface;
};
/* a resource record */
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 66c21ebfaf..1f3a251fec 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -142,7 +142,6 @@ char *lp_character_set(void);
char *lp_logon_script(void);
char *lp_wins_server(void);
char *lp_interfaces(void);
-char *lp_remote_interfaces(void);
BOOL lp_wins_support(void);
BOOL lp_wins_proxy(void);
BOOL lp_domain_master(void);
diff --git a/source3/lib/interface.c b/source3/lib/interface.c
index 40fcdfa6e2..3a532140b3 100644
--- a/source3/lib/interface.c
+++ b/source3/lib/interface.c
@@ -33,7 +33,6 @@ static BOOL got_bcast=False;
static BOOL got_nmask=False;
struct interface *local_interfaces = NULL;
-struct interface *remote_interfaces = NULL;
struct interface *last_iface;
@@ -349,12 +348,7 @@ load the remote and local interfaces
void load_interfaces(void)
{
/* add the machine's interfaces to local interface structure*/
- interpret_interfaces(lp_interfaces (), &local_interfaces,
- "interface");
-
- /* add all subnets to remote interfaces structure */
- interpret_interfaces(lp_remote_interfaces(), &remote_interfaces,
- "remote subnet");
+ interpret_interfaces(lp_interfaces(), &local_interfaces,"interface");
}
diff --git a/source3/nameannounce.c b/source3/nameannounce.c
index 3107d02c14..4801f9e0bd 100644
--- a/source3/nameannounce.c
+++ b/source3/nameannounce.c
@@ -394,11 +394,13 @@ void announce_host(void)
work->lastannounce_time = t;
+ /*
if (!d->my_interface) {
stype &= ~(SV_TYPE_POTENTIAL_BROWSER | SV_TYPE_MASTER_BROWSER |
SV_TYPE_DOMAIN_MASTER | SV_TYPE_BACKUP_BROWSER |
SV_TYPE_DOMAIN_CTRL | SV_TYPE_DOMAIN_MEMBER);
}
+ */
for (s = work->serverlist; s; s = s->next) {
if (strequal(myname, s->serv.name)) {
diff --git a/source3/namedbserver.c b/source3/namedbserver.c
index f695644129..afb1dc1431 100644
--- a/source3/namedbserver.c
+++ b/source3/namedbserver.c
@@ -161,7 +161,7 @@ struct server_record *add_server_entry(struct subnet_record *d,
}
- if (d->my_interface && strequal(lp_workgroup(),work->work_group))
+ if (strequal(lp_workgroup(),work->work_group))
{
if (servertype)
servertype |= SV_TYPE_LOCAL_LIST_ONLY;
diff --git a/source3/namedbsubnet.c b/source3/namedbsubnet.c
index c78307f666..a259f25393 100644
--- a/source3/namedbsubnet.c
+++ b/source3/namedbsubnet.c
@@ -47,9 +47,6 @@ int updatecount = 0;
/* local interfaces structure */
extern struct interface *local_interfaces;
-/* remote interfaces structure */
-extern struct interface *remote_interfaces;
-
/* this is our domain/workgroup/server database */
struct subnet_record *subnetlist = NULL;
@@ -143,7 +140,6 @@ static struct subnet_record *make_subnet(struct in_addr bcast_ip, struct in_addr
d->bcast_ip = bcast_ip;
d->mask_ip = mask_ip;
d->workgrouplist = NULL;
- d->my_interface = False; /* True iff the interface is on the samba host */
add_subnet(d);
@@ -152,7 +148,7 @@ static struct subnet_record *make_subnet(struct in_addr bcast_ip, struct in_addr
/****************************************************************************
- add the remote interfaces from lp_remote_interfaces() and lp_interfaces()
+ add the remote interfaces from lp_interfaces()
to the netbios subnet database.
****************************************************************************/
void add_subnet_interfaces(void)
@@ -165,22 +161,7 @@ void add_subnet_interfaces(void)
/* add the interface into our subnet database */
if (!find_subnet(i->bcast))
{
- struct subnet_record *d = make_subnet(i->bcast,i->nmask);
- if (d)
- {
- /* short-cut method to identifying local interfaces */
- d->my_interface = True;
- }
- }
- }
-
- /* loop on all remote interfaces */
- for (i = remote_interfaces; i; i = i->next)
- {
- /* add the interface into our subnet database */
- if (!find_subnet(i->bcast))
- {
- make_subnet(i->bcast,i->nmask);
+ make_subnet(i->bcast,i->nmask);
}
}
@@ -248,15 +229,14 @@ struct subnet_record *add_subnet_entry(struct in_addr bcast_ip,
/* add WORKGROUP(1e) and WORKGROUP(00) entries into name database
or register with WINS server, if it's our workgroup */
- if (strequal(lp_workgroup(), name) && d->my_interface)
+ if (strequal(lp_workgroup(), name))
{
add_my_name_entry(d,name,0x1e,NB_ACTIVE|NB_GROUP);
add_my_name_entry(d,name,0x0 ,NB_ACTIVE|NB_GROUP);
}
/* add samba server name to workgroup list. don't add
lmhosts server entries to local interfaces */
- if ((strequal(lp_workgroup(), name) && d->my_interface) ||
- (lmhosts && !d->my_interface))
+ if (strequal(lp_workgroup(), name))
{
add_server_entry(d,w,myname,w->ServerType,0,ServerComment,True);
DEBUG(3,("Added server name entry %s at %s\n",
diff --git a/source3/namedbwork.c b/source3/namedbwork.c
index 88f66a7b15..13dde54b22 100644
--- a/source3/namedbwork.c
+++ b/source3/namedbwork.c
@@ -203,17 +203,12 @@ struct work_record *find_workgroupstruct(struct subnet_record *d,
if ((work = make_workgroup(name)))
{
if (lp_preferred_master() &&
- strequal(lp_workgroup(), name) &&
- d->my_interface)
+ strequal(lp_workgroup(), name))
{
DEBUG(3, ("preferred master startup for %s\n", work->work_group));
work->needelection = True;
work->ElectionCriterion |= (1<<3);
}
- if (!d->my_interface)
- {
- work->needelection = False;
- }
add_workgroup(work, d);
return(work);
}
diff --git a/source3/nameelect.c b/source3/nameelect.c
index 2b0fa5c0dd..1095f8a7fa 100644
--- a/source3/nameelect.c
+++ b/source3/nameelect.c
@@ -100,7 +100,7 @@ void browser_gone(char *work_name, struct in_addr ip)
/* i don't know about this workgroup, therefore i don't care */
if (!work || !d) return;
- if (strequal(work->work_group, lp_workgroup()) && d->my_interface)
+ if (strequal(work->work_group, lp_workgroup()))
{
DEBUG(2,("Forcing election on %s %s\n",
@@ -112,16 +112,12 @@ void browser_gone(char *work_name, struct in_addr ip)
else
{
/* local interfaces: force an election */
- if (d->my_interface)
- send_election(d, work->work_group, 0, 0, myname);
-
- /* only removes workgroup completely on a local interface or
- if there are no server entries on the remote interface.
- (persistent lmhost entries on a remote interface will stop
- the workgroup being removed. persistent lmhosts entries on
- a local interface _will_ be removed).
+ send_election(d, work->work_group, 0, 0, myname);
+
+ /* only removes workgroup completely on a local interface
+ persistent lmhosts entries on a local interface _will_ be removed).
*/
- remove_workgroup(d, work, d->my_interface);
+ remove_workgroup(d, work,True);
}
}
@@ -300,7 +296,7 @@ void become_master(struct subnet_record *d, struct work_record *work)
work->ServerType |= SV_TYPE_MASTER_BROWSER;
add_server_entry(d,work,myname,work->ServerType,0,ServerComment,True);
- if (d->my_interface && work->serverlist == NULL) /* no servers! */
+ if (work->serverlist == NULL) /* no servers! */
{
/* ask all servers on our local net to announce to us */
announce_request(work, d->bcast_ip);
@@ -568,8 +564,7 @@ void process_election(struct packet_struct *p,char *buf)
for (work = d->workgrouplist; work; work = work->next)
{
if (listening_name(work, &dgram->dest_name) &&
- strequal(work->work_group, lp_workgroup()) &&
- d->my_interface)
+ strequal(work->work_group, lp_workgroup()))
{
if (win_election(work, version,criterion,timeup,name))
{
diff --git a/source3/nameserv.c b/source3/nameserv.c
index ee75a9825a..93cc597415 100644
--- a/source3/nameserv.c
+++ b/source3/nameserv.c
@@ -186,8 +186,6 @@ void add_my_names(void)
{
BOOL wins_iface = ip_equal(d->bcast_ip, ipgrp);
- if (!d->my_interface && !wins_iface) continue;
-
add_my_name_entry(d, myname,0x20,NB_ACTIVE);
add_my_name_entry(d, myname,0x03,NB_ACTIVE);
add_my_name_entry(d, myname,0x00,NB_ACTIVE);
diff --git a/source3/namework.c b/source3/namework.c
index fbdba6c68c..1a7a48aa9a 100644
--- a/source3/namework.c
+++ b/source3/namework.c
@@ -656,8 +656,6 @@ static void process_announce_request(struct packet_struct *p,char *buf)
if (!d) return;
- if (!d->my_interface) return;
-
for (work = d->workgrouplist; work; work = work->next)
{
/* XXXX BUG: the destination name type should also be checked,
diff --git a/source3/nmbsync.c b/source3/nmbsync.c
index dd1b8bac0d..de3d9e8733 100644
--- a/source3/nmbsync.c
+++ b/source3/nmbsync.c
@@ -112,10 +112,7 @@ static BOOL add_info(struct subnet_record *d, struct work_record *work, int serv
/* creates workgroup on remote subnet */
if ((w = find_workgroupstruct(d,sname,True)))
{
- if (d->my_interface)
- {
- announce_request(w, d->bcast_ip);
- }
+ announce_request(w, d->bcast_ip);
}
}
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 48b9d062e8..f4aaa16e6a 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -129,7 +129,6 @@ typedef struct
char *szSmbrun;
char *szWINSserver;
char *szInterfaces;
- char *szRemoteInterfaces;
int max_log_size;
int mangled_stack;
int max_xmit;
@@ -367,7 +366,6 @@ struct parm_struct
{"null passwords", P_BOOL, P_GLOBAL, &Globals.bNullPasswords, NULL},
{"strip dot", P_BOOL, P_GLOBAL, &Globals.bStripDot, NULL},
{"interfaces", P_STRING, P_GLOBAL, &Globals.szInterfaces, NULL},
- {"remote interfaces",P_STRING, P_GLOBAL, &Globals.szRemoteInterfaces,NULL},
{"password server", P_STRING, P_GLOBAL, &Globals.szPasswordServer, NULL},
{"socket options", P_GSTRING, P_GLOBAL, user_socket_options, NULL},
{"smbrun", P_STRING, P_GLOBAL, &Globals.szSmbrun, NULL},
@@ -706,7 +704,6 @@ FN_GLOBAL_STRING(lp_character_set,&Globals.szCharacterSet)
FN_GLOBAL_STRING(lp_logon_script,&Globals.szLogonScript)
FN_GLOBAL_STRING(lp_wins_server,&Globals.szWINSserver)
FN_GLOBAL_STRING(lp_interfaces,&Globals.szInterfaces)
-FN_GLOBAL_STRING(lp_remote_interfaces,&Globals.szRemoteInterfaces)
FN_GLOBAL_BOOL(lp_wins_support,&Globals.bWINSsupport)
FN_GLOBAL_BOOL(lp_wins_proxy,&Globals.bWINSproxy)