You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (Jira)" <ji...@apache.org> on 2022/07/07 17:25:00 UTC
[jira] [Commented] (PROTON-2104) [cpp] Error specifying url with IPv6 literal host address
[ https://issues.apache.org/jira/browse/PROTON-2104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17563900#comment-17563900 ]
Andrew Stitcher commented on PROTON-2104:
-----------------------------------------
Actually you can't use a link local address like fe80::c662:ab36:1ef1:1596 without specifying the scope of the address and so this example will always fail in a similar fashion.
If you do add the link scope then this works correctly for me:
{{$ cpp/examples/simple_send -a [fe80::f0c8:9d35:768b:2df0%wlp2s0]/blah}}
{{all messages confirmed}}
Similarly if I use a correct global address it also works:
{{$ cpp/examples/simple_send -a [2a00:23c5:2b82:a001:7055:2efa:945c:547]/blah}}
{{all messages confirmed}}
If you add the link scope or use a global address then the C clients also work:
{{$ c/examples/send 'fe80::f0c8:9d35:768b:2df0%wlp2s0' 5672 blah}}
{{10 messages sent and acknowledged}}
and
{{$ c/examples/send '2a00:23c5:2b82:a001:7055:2efa:945c:547' 5672 blah}}
{{10 messages sent and acknowledged}}
So it's not clear to me that there is actually any bug here at all!
> [cpp] Error specifying url with IPv6 literal host address
> ---------------------------------------------------------
>
> Key: PROTON-2104
> URL: https://issues.apache.org/jira/browse/PROTON-2104
> Project: Qpid Proton
> Issue Type: Bug
> Components: cpp-binding
> Affects Versions: proton-c-0.29.0, proton-c-0.33.0
> Reporter: Charles E. Rolke
> Assignee: Andrew Stitcher
> Priority: Major
>
> C++ examples simple_send and simple_recv accept IPv6 loopback address [::1] but have issues with other apparently legal addresses.
> These work on my system:
> {noformat}
> ping6 fe80::c662:ab36:1ef1:1596
> ping6 fe80::c662:ab36:1ef1:1596%wlp4s0
> ping6 fe80:0000:0000:0000:c662:ab36:1ef1:1596
> {noformat}
> Wrapping the host part in square brackets and sending that address to simple_send fails:
> {noformat}
> ./simple_send -a [fe80::c662:ab36:1ef1:1596]:5672/abc
> proton:io: Invalid argument - on connect fe80::c662:ab36:1ef1:1596:5672
> {noformat}
> All three variants of the address that work with ping6 fail with the same error on the simple_send command line.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org