[zeromq-dev] OpenPGM and IPv6 interfaces

Steven McCoy steven.mccoy at miru.hk
Thu Feb 4 03:53:02 CET 2010


2010/2/3 Martin Sustrik <sustrik at 250bpm.com>

> Steven,
>
> > You can provide an address family to the pgm_if_get_transport_info call
> > via the ti_family field of the pgm_transport_info_t parameter.
>
> Tried to make it work this way:
>
>    struct pgm_transport_info_t *res = NULL;
>    struct pgm_transport_info_t hint;
>    memset (&hint, 0, sizeof (hint));
>    hint.ti_family = AF_INET;
>    if (!pgm_if_get_transport_info (network, &hint, &res, &pgm_error))...
>
>
> pgm_if_get_transport_info succeeds but the address seems resolve to
> 0.0.0.0:
>
>
Works fine here with 2.0.23, setting with IPv6,

struct pgm_transport_info_t hints = {
 .ti_family = AF_INET6
 }, *res = NULL;
 GError* err = NULL;
 if (!pgm_if_get_transport_info (network, &hints, &res, &err)) {
...

$ ./ref/debug/examples/pgmrecv  -lp 3065 -n "eth0;"
...
2010-02-04 10:50:26 aiko Pgm: bind succeeded on recv_gsr[0] interface ::
2010-02-04 10:50:26 aiko Pgm: binding send socket to interface index 2
2010-02-04 10:50:26 aiko Pgm: bind succeeded on send_gsr interface
fe80::230:1bff:feb7:a209%eth0
2010-02-04 10:50:26 aiko Pgm: bind (router alert) succeeded on send_gsr
interface fe80::230:1bff:feb7:a209%eth0
2010-02-04 10:50:26 aiko Pgm: MCAST_JOIN_GROUP succeeded on recv_gsr[0]
interface 2 group ff08::1
2010-02-04 10:50:26 aiko Pgm: pgm_sockaddr_multicast_if succeeded on
send_gsr address fe80::230:1bff:feb7:a209%eth0 interface 2
2010-02-04 10:50:26 aiko Pgm: pgm_sockaddr_multicast_if (router alert)
succeeded on send_gsr address fe80::230:1bff:feb7:a209%eth0 interface 2

Setting with IPv4,

struct pgm_transport_info_t hints = {
 .ti_family = AF_INET
 }, *res = NULL;
 GError* err = NULL;
 if (!pgm_if_get_transport_info (network, &hints, &res, &err)) {
...

$ ./ref/debug/examples/pgmrecv  -lp 3065 -n "eth0;"
...
2010-02-04 10:51:58 aiko Pgm: bind succeeded on recv_gsr[0] interface
0.0.0.0
2010-02-04 10:51:58 aiko Pgm: binding send socket to interface index 2
2010-02-04 10:51:58 aiko Pgm: bind succeeded on send_gsr interface
10.6.15.69
2010-02-04 10:51:58 aiko Pgm: bind (router alert) succeeded on send_gsr
interface 10.6.15.69
2010-02-04 10:51:58 aiko Pgm: MCAST_JOIN_GROUP succeeded on recv_gsr[0]
interface 2 group 239.192.0.1
2010-02-04 10:51:58 aiko Pgm: pgm_sockaddr_multicast_if succeeded on
send_gsr address 10.6.15.69 interface 2
2010-02-04 10:51:58 aiko Pgm: pgm_sockaddr_multicast_if (router alert)
succeeded on send_gsr address 10.6.15.69 interface 2

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100204/1dffedbc/attachment.htm>


More information about the zeromq-dev mailing list