]> git.proxmox.com Git - mirror_corosync.git/commit
totemip: Add support for sin6_scope_id
authorJan Friesse <jfriesse@redhat.com>
Fri, 14 Feb 2020 08:42:08 +0000 (09:42 +0100)
committerJan Friesse <jfriesse@redhat.com>
Mon, 17 Feb 2020 16:31:42 +0000 (17:31 +0100)
commit934c47ed4384daf2819c26306bebba3225807499
treec530d17ff606d19a46ab5c6e3a2725d9a03fa39d
parent720a892751807ac5e2c874e691a433b093d1fb5d
totemip: Add support for sin6_scope_id

sin6_scope_id was not present in totemip structure making impossible to
use link-local ipv6 address.

Patch adds sin6_scope_id and changes convert/copy functions to use it
(formally also comparator functions should be changed, but it seems to
cause more harm and it is not really needed).

This makes corosync work with link-local addresses fine for both UDPU
and Knet transport as long as interface specification is used (so
fe80::xxxx:xxxx:xxxx:xxxx%eth0).

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
exec/totemip.c
include/corosync/coroapi.h
include/corosync/totem/totemip.h