Weird problem IP change monitoring

Thomas Haller thaller at redhat.com
Thu Jun 4 23:59:42 PDT 2015


On Do, 2015-06-04 at 01:19 +0200, Sebastian Kricner wrote:
> Hello,
> 
> i have written a small C program to monitor IPv4 address changes with
> libnl and generally it works. But sometimes it delivers the IP 
> address
> of a different interface alltough i do a strcmp() on interface name.
> 
> Attached the program.
> 
> What might cause the problem?
> 

Hi Sebastian,

maybe you must check whether 
  if_indextoname(ifindex, s_ifname);
succeeds?


Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20150605/745825c6/attachment.sig>


More information about the libnl mailing list