On 06/04/2012 12:32 AM, Keisuke MORI wrote:
> Hi Alan,
>
> Thank you for your comments.
> It's an interesting idea, but I don't think we need to care about IPv4
> link-local addresses
> because users can configure using the same manner as a "regular" IP address.
> (and it's used very rarely)
>
> In the case of IPv6 link-local addresses it is almost always a wrong
> configuration if nic is missing
> (the socket API mandate it) so we want to check it.
>
>> However, for addresses which are not yet up (which is unfortunately what
>> you're concerned with), ipv6 link-local addresses take the form
>> fe80:: -- followed by 64-bits of MAC addresses (48 bit
>> MACs are padded out)
>>
>> http://en.wikipedia.org/wiki/Link-local_address
>>
>> MAC addresses never begin with 4 bytes of zeros, so the regular expression
>> to match this is pretty straightforward. This isn't a bad approximation
>> (but could easily be made better):
> Yes, you are right. Matching to 'fe80::' should be pretty easy and good
> enough.
> Why I could not think of such a simple idea :)
I'm delighted to have been of service.
I'm best at simple things ;-).
--
Alan Robertson<[email protected]> - @OSSAlanR
"Openness is the foundation and preservative of friendship... Let me claim
from you at all times your undisguised opinions." - William Wilberforce
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/