From 429f1f975e2936f2e220b656c51c211d48d47047 Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Tue, 9 Jul 1996 18:01:46 +0000 Subject: sorted out various timer delay bugs: nameannounce.c nameserv.c namedbname.c:search_for_name() wasn't looking for 0x1b as well as 0x0 and 0x20 name types. reduced number of retransmissions of packets from 4 to 3 times. added code that ensures remote lmhosts entries don't get deleted when a master browser cannot be found on a remote subnet. stopped forcing an election on remote subnets if a master browser cannot be found. stopped browse list and wins list from being written out too frequently. only add samba's names to local interfaces. add 0x1c name if we are a domain logon machine (needs more exploration). why bother reloading services when receiving a SIGTERM? sort out add_my_name_entry() and remove_name_entry() to deal with broadcast, samba as a WINS and samba using a WINS. properly. added extra debug information to help with expected response queue code. updated debug comments in become_master(). altered dump_names() DEBUG format. it looks prettier. altered wins.dat format to match DEBUG format. lkcl --- source/namepacket.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/namepacket.c') diff --git a/source/namepacket.c b/source/namepacket.c index 38b8ed06535..5afdb8af0ed 100644 --- a/source/namepacket.c +++ b/source/namepacket.c @@ -81,9 +81,10 @@ void initiate_netbios_packet(uint16 *id, bzero((char *)&p,sizeof(p)); - update_name_trn_id(); - - if (*id == 0xffff) *id = name_trn_id; /* allow resending with same id */ + if (*id == 0xffff) { + update_name_trn_id(); + *id = name_trn_id; /* allow resending with same id */ + } nmb->header.name_trn_id = *id; nmb->header.opcode = opcode; -- cgit