[
https://issues.apache.org/jira/browse/QPID-5919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Ross updated QPID-5919:
------------------------------
Component/s: C++ Tests
> C++ ipv6_test does not detect IPv6 properly
> -------------------------------------------
>
> Key: QPID-5919
> URL: https://issues.apache.org/jira/browse/QPID-5919
> Project: Qpid
> Issue Type: Bug
> Components: C++ Tests
> Affects Versions: 0.28
> Environment: Fedora 19 linux, IPv6-enabled default installation
> Reporter: Chuck Rolke
>
> ipv6_test uses
> {noformat}
> if ip -f inet6 -o addr | cut -f 9 -s -d' ' | grep global > /dev/null ; then
> echo "IPv6 addresses configured continuing"
> else
> echo "No global IPv6 addresses configured - skipping test"
> exit 0
> fi
> {noformat}
> to detect IPv6. On my system this returns false and IPv6 test does not run.
> A naked './hello_world' then my broker sees a connection from ::1, the IPv6
> localhost address. IPv6 is there, it works, and the system uses it.
> Self test AclHost.cpp uses a different IPv6 detection method
> {noformat}
> bool haveIPv6(true);
> try {
> sys::SocketAddress sa("::1", "");
> sa.firstAddress();
> } catch (qpid::Exception) {
> haveIPv6 = false;
> }
> {noformat}
> It creates a SocketAddress and uses it. If it can resolve "::1" then IPv6 is
> there.
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]