Hi,
On Wed, Jun 02, 2010 at 09:43:47PM +0200, Jan Kasprzak wrote:
> Hello,
>
> our insitution uses link-local prefixes for IPv6 point-to-point links
> (like fe80::1/64 on one side, and fe80::2/64 on another one).
> I want to have one such address to shared via heartbeat/resource-agents
> between two physical routers.
>
> Apparently, current code refuses to add a shared IPv6 address if it
> is in a link-local scope. The following patch tries to be less strict.
> Link-local scopes are allowed now, provided that they are accompanied
> with the name of the interface.
>
> Please consider applying the following patch:
Applied. Many thanks for the patch.
Cheers,
Dejan
> ---
> resource-agents-3.0.12/Cluster-Resource-Agents-a7c0f35916bf/heartbeat/IPv6addr.c.orig
> 2010-06-02 17:57:33.092817221 +0200
> +++
> resource-agents-3.0.12/Cluster-Resource-Agents-a7c0f35916bf/heartbeat/IPv6addr.c
> 2010-06-02 18:06:20.404823040 +0200
> @@ -502,11 +502,14 @@
> break;
> }
>
> - /* Only Global address entry would be considered.
> - * maybe change?
> + /* Consider link-local addresses (scope == 0x20) only when
> + * the inerface name is provided, and global addresses
> + * (scope == 0). Skip everything else.
> */
> - if (0 != scope) {
> - continue;
> + if (scope != 0) {
> + if (scope != 0x20 || prov_ifname == 0
> + || *prov_ifname == 0)
> + continue;
> }
>
> /* If specified prefix, only same prefix entry
>
>
> -Jan Kasprzak
>
> --
> | Jan "Yenya" Kasprzak <kas at {fi.muni.cz - work | yenya.net - private}> |
> | GPG: ID 1024/D3498839 Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
> | http://www.fi.muni.cz/~kas/ Journal: http://www.fi.muni.cz/~kas/blog/ |
> Please don't top post and in particular don't attach entire digests to your
> mail or we'll all soon be using bittorrent to read the list. --Alan Cox
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems