Enable utils.OwnIpAddress to work with IPv6 addresses
authorManuel Franceschini <livewire@google.com>
Wed, 30 Jun 2010 13:35:34 +0000 (15:35 +0200)
committerManuel Franceschini <livewire@google.com>
Wed, 30 Jun 2010 13:58:55 +0000 (15:58 +0200)
commit56e4c4a067a303aa709e58fd5b253c259d96ce1a
tree8b594257751eec842d43111baaed0cd119079f6c
parent4b5e40a5d5a0619692bae508a983863cfd9b4380
Enable utils.OwnIpAddress to work with IPv6 addresses

Currently a TcpPing using the target address as source is used to
determine wheter or not an IP address belongs to a node. This does not
work for IPv6 anymore (I'm not sure why) as binding to IPv6 localhost as
source for the TCP connection in TcpPing still results in a successful
connection, even in case the target address is non-local.

Signed-off-by: Manuel Franceschini <livewire@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/utils.py