On 32 bit platforms you might have issues with this check since IPv6 can be bit large here :)