]> git.openfabrics.org - ~shefty/ibacm.git/commit
ibacm: Provide correct addr_len for IPv6
authorSean Hefty <sean.hefty@intel.com>
Tue, 15 Apr 2014 22:25:12 +0000 (15:25 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 16 Apr 2014 06:33:29 +0000 (23:33 -0700)
commitf18aa525af47f66b8271e3fae218c1cc082c2ae8
tree2644a323d837f2e4c57a8ccc7d2a35b5d5651403
parent0690b51e811d464bbe1c19b318ede5911b3d383f
ibacm: Provide correct addr_len for IPv6

When reading in addresses from the address file, the
address string is converted into either an IPv4, IPv6,
or hostname 'address'.  In the case of IPv6, the length
of the address is set to the maximum supported value.
This can result in extra bytes being set beyond the
actual IPv6 address, which are then copied into the
endpoint address.  Fix this by setting the size
of the IPv6 correctly.  When the address is copied into
the endpoint address, the extra bytes are then ignored.

Problem reported by: Kaike Wan <kaike.wan@intel.com>

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/acm.c