[omniORB] [patch] omni::LibcWrapper::isip6addr("2001:db8::") is false

Duncan Grisby duncan at grisby.org
Wed Mar 30 11:58:53 BST 2016


On Sun, 2016-02-14 at 23:23 +0000, Marcin Cieslak wrote:

[...]
> as it turns out, omni::LibcWrapper::isip6addr("2a01:4f8:a0:7383::") was returning false.

Sorry for the long delay in replying. You are right, the code in
isip6addr() was wrong. Your proposed fix doesn't quite validate all IPv6
addresses correctly, though. I have checked in a fix to the 4_2 branch
that properly handles it.

> I also wonder if this function shouldn't accept zone indexed
> addresses (fe80::3%iface) as well.

It shouldn't. The zone indexing only makes sense within the local
machine, so it can't be used in addresses that are to be used in CORBA
object references and calls.

Regards,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --





More information about the omniORB-list mailing list