[zeromq-dev] libpgm mishandles getifaddrs() quirk (with patch)

Steven McCoy steven.mccoy at miru.hk
Fri Aug 10 02:44:36 CEST 2012


On 8 August 2012 16:28, Stuart Levy <salevy at illinois.edu> wrote:

> This seems to be due to a kernel/glibc bug in getifaddrs(), which
> returns a strange ifa_name for Infiniband interfaces with IPV6
> addresses.  But libpgm's response shouldn't be to crash the program.  I
> patched it as follows to simply skip interfaces where
> pgm_if_nametoindex() fails.
>
>
I think this might have been reported before, solved with a kernel update.
 However I have updated 5.2.120 with code to handle such interfaces a
little better.  Specifying the interface address will display a warning on
the console that the interface cannot be bound: the default systems
multicast route will be used instead.  Specifying a network parameter that
would resolve to that interface will generate a warning and the interface
will be skipped.

OpenPGM will deliberately skip interfaces specified in non-numeric form if
they are not operationally up, multicast capable, and correctly resolve to
an interface index.

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


More information about the zeromq-dev mailing list