kern/127050: [carp] ipv6 does not work on carp interfaces
[regression]
Paul Herman
pherman at frenchfries.net
Fri Aug 19 08:30:19 UTC 2011
The following reply was made to PR kern/127050; it has been noted by GNATS.
From: Paul Herman <pherman at frenchfries.net>
To: bug-followup at FreeBSD.org
Cc: Wouter de Jong <maddog2k at maddog2k.net>, Jacek Zapala <jacek at it.pl>
Subject: Re: kern/127050: [carp] ipv6 does not work on carp interfaces [regression]
Date: Fri, 19 Aug 2011 10:13:46 +0200
This is a multi-part message in MIME format.
--------------010305010708060807000808
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
This one's been bothering me too, so I setup a test machine yesterday to
figure out what's going on. I see two problems here.
First of all, in6_ifinit() (called via in6_control() SIOCAIFADDR_IN6 ->
in6_update_ifa()) only calls carp_ioctl() on the first IPv6 address.
Whereas in the v4 case, carp_ioctl() does get called by in_ifinit()
every time.
Second of all, carp_set_addr6() (called via carp_ioctl()) only joins the
CARP multicast group AND the solicitation group with the first address.
The attached patch against 8-STABLE fixes these issues, alias IPs are
now pingable. I have not tested actual carp functionality with a 2nd
BACKUP carp. What this patch doesn't address is group membership
removal when alias IPs are deleted (apparently also broken.)
Try it out, if it works for you guys, maybe someone more familiar with
in[6]_control() can chime in here and comment on a *real* way to fix
this issue. :-)
Cheers,
-Paul.
--------------010305010708060807000808
Content-Type: application/gzip;
name="carp_ip6_alias.patch.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="carp_ip6_alias.patch.gz"
H4sICDwXTk4CA2NhcnBfaXA2X2FsaWFzLnBhdGNoAJVVa0+jQBT9TH/F9UsDHbDQWvramhof
CVlfsZpN1hiCCDobYAhD42Pd/753mNIHtlZJyuvee+7pOXcGwzCAv/JmEuQUf3aTJvauv8sy
+qi0TMsyzJ5h9cHsDszeoG3umuUBRJxrhJA19dXS/qDT/lA6HoNhdffaehfI7Doe16AGCvWM
feq53sNDBiNocMQcYsBQaAgqDT2fTZMcfozAgnodaJhieuhS5ueRBn9rpMirJL6/zxPz1zSA
0Qick2v38ODqUluLAooSZBkTDNTGahShUx0mzsXhxDk5ODq60kH1BVs316inDUWtoFDUz7AU
nkYvKsegsSp5k6au72XpetU7rUHH3qb6AqJSbXUG5gbh7a6p91F4cbWsQnmF59nUz0FAuci/
4dNwuHiNLuDbwpQG9XRxclcTUtuNWZpTlnCMxjZD7ercN/a574rHIVqzBBZPo5xiYmLHlTZF
E+m6QtFB9pzoUKgp5oDg29IacygnBtV2zm3XmbjCD/fmfHJ5fOicOMdHal3MD3IogTXhiBy+
Vl/vieFrW7otJfg3h9uZEU9EDbdFkaFspG8UnuN/xDHBswz6Hs9RohR54lkyVZoN+MNoAmLy
YJ4GokvAUbdmuTA6emuvWBnFTcFOUR5ZzsCPAi+ZpsNqzyC+DzL+RNNb8070nAm7nJNM46U8
ToigbixYcRZRn+bBw3pqmHn/FmRMrSO4Dpy+BSxU8V4Tg42dcPVzKbNlSxZPOY6Dar6Eodn6
kNRu3Vp30sYPgVZZHanWusK2iFe8XQlXa3q3VoEpuMiY2E6wkgc591kazP5VsbrPb05PNdjB
bE2kVoSXwDGCibziuZzIYjR8V6gp9wkJKvLkfawj5ry/3CM2tFjrrbXw1tjmrRxo8lV7ySfu
ki+YSzZ4Sz63lnzfWbLZWPJlX0lVc7LqKvm2qWTZ03Xw2xwlWwwl5e5UfpHEZj37xOB2jTix
F0XMV2fmiT1c0+Gs+NDpIgvwOHN/HTjXFz/fz9zfx1cXSPw/VIIrJwgIAAA=
--------------010305010708060807000808--
More information about the freebsd-net
mailing list