summaryrefslogtreecommitdiff
path: root/source3/nameresp.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1997-09-03 20:15:40 +0000
committerJeremy Allison <jra@samba.org>1997-09-03 20:15:40 +0000
commit82290216ad827c9f8f74ffd3aa6a37dca28174e1 (patch)
tree6638d14cbfbffac25e9d8a9a7578194ee44f2879 /source3/nameresp.c
parent6e64355770c43e5bf6aa9896cb87f3cfaad11f1b (diff)
downloadsamba-82290216ad827c9f8f74ffd3aa6a37dca28174e1.tar.gz
samba-82290216ad827c9f8f74ffd3aa6a37dca28174e1.tar.bz2
samba-82290216ad827c9f8f74ffd3aa6a37dca28174e1.zip
nameannounce.c
nameresp.c nameserv.c nameservreply.c proto.h : Removed broadcast and recurse parameters in the queue_netbios_pkt_wins() call - they are not needed as they should always be 'false' and 'true' respectively. Also fixed a bug with secure name registration (WINS server code). server.c: Finally fixed problem with error 267 being returned to Win95. It is needed by NT. This is a horrid fix and I would appreciate a better one :-). Jeremy (jallison@whistle.com) (This used to be commit fa1305d1894a28331ba80d9de038ebf31ba902d6)
Diffstat (limited to 'source3/nameresp.c')
-rw-r--r--source3/nameresp.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/source3/nameresp.c b/source3/nameresp.c
index 23e70a7064..f44171f4b6 100644
--- a/source3/nameresp.c
+++ b/source3/nameresp.c
@@ -117,7 +117,7 @@ static void dead_netbios_entry(struct subnet_record *d,
add_name_respond(d,n->fd,d->myip, n->response_id ,&n->name,
n->nb_flags, GET_TTL(0),
- n->reply_to_ip, False, n->reply_to_ip);
+ n->reply_to_ip, True, n->reply_to_ip);
if (!n->bcast && n->num_msgs == 0)
{
@@ -250,7 +250,6 @@ struct response_record *queue_netbios_pkt_wins(
int fd,int quest_type,enum state_type state,
char *name,int name_type,int nb_flags, time_t ttl,
int server_type, char *my_name, char *my_comment,
- BOOL bcast,BOOL recurse,
struct in_addr send_ip, struct in_addr reply_to_ip)
{
/* XXXX note: please see rfc1001.txt section 10 for details on this
@@ -260,30 +259,29 @@ struct response_record *queue_netbios_pkt_wins(
*/
if ((!lp_wins_support()) && (*lp_wins_server()))
- {
+ {
/* samba is not a WINS server, and we are using a WINS server */
struct in_addr real_wins_ip;
real_wins_ip = *interpret_addr2(lp_wins_server());
- if (!zero_ip(real_wins_ip))
+ if (!zero_ip(real_wins_ip))
{
- bcast = False;
send_ip = real_wins_ip;
}
- else
+ else
{
/* oops. smb.conf's wins server parameter MUST be a host_name
or an ip_address. */
DEBUG(0,("invalid smb.conf parameter 'wins server'\n"));
}
- }
+ }
if (zero_ip(send_ip)) return NULL;
return queue_netbios_packet(wins_subnet,fd, quest_type, state,
name, name_type, nb_flags, ttl,
server_type,my_name,my_comment,
- bcast, recurse, send_ip, reply_to_ip);
+ False, True, send_ip, reply_to_ip);
}