/*
* If we are a local master browser, periodically
* announce ourselves to the domain master browser.
- * This also deals with syncronising the domain master
+ * This also deals with synchronising the domain master
* browser server lists with ourselves as a local
* master browser.
* (nmbd_sendannounce.c)
announce_myself_to_domain_master_browser(t);
/*
- * Fullfill any remote announce requests.
+ * Fulfill any remote announce requests.
* (nmbd_sendannounce.c)
*/
announce_remote(t);
/*
- * Fullfill any remote browse sync announce requests.
+ * Fulfill any remote browse sync announce requests.
* (nmbd_sendannounce.c)
*/
/*
* Scan the subnet namelists and server lists and
- * expire thos that have timed out.
+ * expire those that have timed out.
* (nmbd.c)
*/
pull_ascii_nstring(name, sizeof(name), nmbname->name);
/* If the given ip is not ours, then we can't become a domain
- controler as the name is already registered.
+ controller as the name is already registered.
*/
/* BUG note. Samba 1.9.16p11 servers seem to return the broadcast
}
/* Send out a query to establish whether there's a
- domain master broswer registered with WINS. If not,
+ domain master browser registered with WINS. If not,
we can become a domain master browser.
*/
* address we do a Node status request, and look for the first
* NAME<0x20> in the response, and take that as the server name.
* We also keep a cache of the Domain Master Browser name for this
- * workgroup in the Workgroup struct, so that if the same IP addess
+ * workgroup in the Workgroup struct, so that if the same IP address
* is returned every time, we don't need to do the node status
* request.
*/
unstrcpy(work_name,lp_workgroup());
/*
- * We are being very agressive here in adding a workgroup
+ * We are being very aggressive here in adding a workgroup
* name on the basis of a host announcing itself as being
* in that workgroup. Maybe we should wait for the workgroup
* announce instead ? JRA.
unstrcpy(work_name,lp_workgroup());
/*
- * We are being very agressive here in adding a workgroup
+ * We are being very aggressive here in adding a workgroup
* name on the basis of a host announcing itself as being
* in that workgroup. Maybe we should wait for the workgroup
* announce instead ? JRA.
workgroup. That's why this is commented out (tridge) */
/*
- * NB. Note that the struct work_record here is not neccessarily
+ * NB. Note that the struct work_record here is not necessarily
* attached to the subnet *subrec.
*/
or it's a Domain Master type. */
/*
- * If this is a WINS_PROXY_NAME, then ceck that none of the IP
+ * If this is a WINS_PROXY_NAME, then check that none of the IP
* addresses we are returning is on the same broadcast subnet
* as the requesting packet. If it is then don't reply as the
* actual machine will be replying also and we don't want two
if (namerec->data.source == WINS_PROXY_NAME) {
for( i = 0; i < namerec->data.num_ips; i++) {
if (same_net_v4(namerec->data.ip[i], subrec->myip, subrec->mask_ip)) {
- DEBUG(5,("process_name_query_request: name %s is a WINS proxy name and is also on the same subnet (%s) as the requestor. Not replying.\n",
+ DEBUG(5,("process_name_query_request: name %s is a WINS proxy name and is also on the same subnet (%s) as the requester. Not replying.\n",
nmb_namestr(&namerec->name), subrec->subnet_name ));
return;
}
ipaddr = ((struct sockaddr_in *)&ss)->sin_addr;
- /* We find a relevent subnet to put this entry on, then add it. */
+ /* We find a relevant subnet to put this entry on, then add it. */
/* Go through all the broadcast subnets and see if the mask matches. */
for (subrec = FIRST_SUBNET; subrec ; subrec = NEXT_SUBNET_EXCLUDING_UNICAST(subrec)) {
if(same_net_v4(ipaddr, subrec->bcast_ip, subrec->mask_ip))
static void become_logon_server(struct subnet_record *subrec,
struct work_record *work)
{
- DEBUG(2,("become_logon_server: Atempting to become logon server for workgroup %s \
+ DEBUG(2,("become_logon_server: Attempting to become logon server for workgroup %s \
on subnet %s\n", work->work_group,subrec->subnet_name));
DEBUG(3,("become_logon_server: go to first stage: register %s<1c> name\n",
}
/****************************************************************************
- Fail funtion when registering my netbios names.
+ Fail function when registering my netbios names.
**************************************************************************/
static void my_name_register_failed(struct subnet_record *subrec,
Utility function automatically called when a name refresh or register
fails. Note that this is only ever called on a broadcast subnet with
one IP address per name. This is why it can just delete the name
- without enumerating the IP adresses. JRA.
+ without enumerating the IP addresses. JRA.
******************************************************************/
void standard_fail_register( struct subnet_record *subrec,
fstrcpy(reg_name, inet_ntoa(register_ip));
if (subrec == unicast_subnet) {
- /* we know that this wins server is definately alive - for the moment! */
+ /* we know that this wins server is definitely alive - for the moment! */
wins_srv_alive(rrec->packet->ip, register_ip);
}
{
/* It is possible this can be called twice,
with a rrec pointer that has been freed. So
- before we inderect into rrec, search for it
+ before we indirect into rrec, search for it
on the responselist first. Bug #3617. JRA. */
struct response_record *p = NULL;
if( same_net_v4( namerec->data.ip[i], orig_broadcast_subnet->myip,
orig_broadcast_subnet->mask_ip ) ) {
DEBUG( 5, ( "wins_proxy_name_query_request_success: name %s is a WINS \
-proxy name and is also on the same subnet (%s) as the requestor. \
+proxy name and is also on the same subnet (%s) as the requester. \
Not replying.\n", nmb_namestr(&namerec->name), orig_broadcast_subnet->subnet_name ) );
return;
}
We have a locked pointer to the original packet stashed away in the
userdata pointer. The success here is actually a failure as it means
the client we queried wants to keep the name, so we must return
- a registration failure to the original requestor.
+ a registration failure to the original requester.
************************************************************************/
static void wins_register_query_success(struct subnet_record *subrec,
/*
* We want to just add the name, as we now know the original owner
- * didn't want it. But we can't just do that as an arbitary
+ * didn't want it. But we can't just do that as an arbitrary
* amount of time may have taken place between the name query
* request and this timeout/error response. So we check that
* the name still exists and is in the same state - if so
/*
* We want to just add the new IP, as we now know the requesting
- * machine claims to own it. But we can't just do that as an arbitary
+ * machine claims to own it. But we can't just do that as an arbitrary
* amount of time may have taken place between the name query
* request and this response. So we check that
* the name still exists and is in the same state - if so