vlserver: prevent duplicate IPs via ChangeAddr
authorAndrew Deason <adeason@sinenomine.net>
Wed, 5 May 2010 18:51:23 +0000 (13:51 -0500)
committerDerrick Brashear <shadow@dementia.org>
Tue, 11 May 2010 15:13:28 +0000 (08:13 -0700)
commit134b599c3ad475685dd0a7251d192e38966fef4c
treeb23c2a0dec6c683ce18fd36adcc7e40a263cca67
parentf2ac483c2bdb018c4f225d2781f15b7926d5063b
vlserver: prevent duplicate IPs via ChangeAddr

Add a safety check in VL_ChangeAddr/ChangeIPAddr to check if we are
adding a duplicate server IP in the database. Return VL_MULTIPADDR
when we try to do that.

Change-Id: Iaff2792b90f4152dac5a1ab4c1072ef56fef518b
Reviewed-on: http://gerrit.openafs.org/1927
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/vlserver/vlprocs.c