fence-virt/client
Jan Pokorný dc9120ce24 Honor implicit "ip_family=auto" in fence_xvm w/IPv6 mult.addr.
Previously this wasn't the case:

$ ./fence_xvm -d -a ff05::3:1 -H asdfaf
-- args @ 0x7fffb9575340 --
  args->domain = asdfaf
  args->op = 2
  args->net.key_file = /etc/cluster/fence_xvm.key
  args->net.hash = 2
  args->net.addr = ff05::3:1
  args->net.auth = 2
  args->net.port = 1229
  args->net.ifindex = 0
  args->net.family = 2
  args->timeout = 30
  args->retr_time = 20
  args->flags = 0
  args->debug = 1
-- end args --
[...]

args->net.family is being assigned value of PF_INET (2) instead of
PF_INET6 (10) as it ought to be with implicit "auto" value as declared, e.g.,
in metadata:

<parameter name="ip_family">
	<getopt mixed="-i" />
	<content type="string" default="auto" />
	<shortdesc lang="en">IP Family ([auto], ipv4, ipv6)</shortdesc>
</parameter>

After the fix, we get the expected behavior when using IPv6 multicast
address:

$ ./fence_xvm -d -a ff05::3:1 -H asdfaf
-- args @ 0x7fffe4af7120 --
  args->domain = asdfaf
  args->op = 2
  args->net.key_file = /etc/cluster/fence_xvm.key
  args->net.hash = 2
  args->net.addr = ff05::3:1
  args->net.auth = 2
  args->net.port = 1229
  args->net.ifindex = 0
  args->net.family = 10
  args->timeout = 30
  args->retr_time = 20
  args->flags = 0
  args->debug = 1
-- end args --
[...]

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
2012-11-27 13:52:59 -05:00
..
main.c Add a delay (-w) option. 2012-06-07 18:10:49 -04:00
Makefile.in Add a TCP listener plugin for use with viosproxy 2012-06-01 15:22:02 -04:00
mcast.c fence-virt: Fix a few fd leaks 2012-10-17 13:32:16 -04:00
options.c Honor implicit "ip_family=auto" in fence_xvm w/IPv6 mult.addr. 2012-11-27 13:52:59 -05:00
serial.c Add a TCP listener plugin for use with viosproxy 2012-06-01 15:22:02 -04:00
tcp.c fence-virt: Fix a few fd leaks 2012-10-17 13:32:16 -04:00