svn commit: samba r11913 - in
branches/SAMBA_4_0/source/nbt_server/wins: .
metze at samba.org
metze at samba.org
Fri Nov 25 15:36:48 GMT 2005
Author: metze
Date: 2005-11-25 15:36:47 +0000 (Fri, 25 Nov 2005)
New Revision: 11913
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11913
Log:
if we have a UNIQUE name with more than 1 address,
it becomes implicit an MHOMED record
metze
Modified:
branches/SAMBA_4_0/source/nbt_server/wins/winswack.c
Changeset:
Modified: branches/SAMBA_4_0/source/nbt_server/wins/winswack.c
===================================================================
--- branches/SAMBA_4_0/source/nbt_server/wins/winswack.c 2005-11-25 15:30:35 UTC (rev 11912)
+++ branches/SAMBA_4_0/source/nbt_server/wins/winswack.c 2005-11-25 15:36:47 UTC (rev 11913)
@@ -81,6 +81,11 @@
rec->expire_time);
if (rec->addresses == NULL) goto failed;
+ /* if we have more than one address, this becomes implicit a MHOMED record */
+ if (winsdb_addr_list_length(rec->addresses) > 1) {
+ rec->type = WREPL_TYPE_MHOMED;
+ }
+
winsdb_modify(state->winssrv->wins_db, rec, WINSDB_FLAG_ALLOC_VERSION | WINSDB_FLAG_TAKE_OWNERSHIP);
DEBUG(4,("WINS: accepted registration of %s with address %s\n",
More information about the samba-cvs
mailing list