diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-11-25 15:36:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:48 -0500 |
commit | c91bdb3af2a0e464ef2c65f200d7848de2350e22 (patch) | |
tree | a7f17cbd51daf3e289af4b44fc22d14521d1789f /source4/nbt_server | |
parent | 3f80ecc0de442313ac4bdb827b401fa7346790e8 (diff) | |
download | samba-c91bdb3af2a0e464ef2c65f200d7848de2350e22.tar.gz samba-c91bdb3af2a0e464ef2c65f200d7848de2350e22.tar.bz2 samba-c91bdb3af2a0e464ef2c65f200d7848de2350e22.zip |
r11913: if we have a UNIQUE name with more than 1 address,
it becomes implicit an MHOMED record
metze
(This used to be commit a5bced92a91f462ac6c41c04012aaeb3f77455de)
Diffstat (limited to 'source4/nbt_server')
-rw-r--r-- | source4/nbt_server/wins/winswack.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/nbt_server/wins/winswack.c b/source4/nbt_server/wins/winswack.c index 793c0a3d8f..40a4d7d76a 100644 --- a/source4/nbt_server/wins/winswack.c +++ b/source4/nbt_server/wins/winswack.c @@ -81,6 +81,11 @@ static void wins_wack_allow(struct wack_state *state) 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", |