IP and port associated with a socket fd

Zubin Mithra zubin.mithra at gmail.com
Thu Aug 7 04:18:34 UTC 2014


On Wed, Aug 6, 2014 at 11:10 PM, Dmitry V. Levin <ldv at altlinux.org> wrote:
> On Tue, Aug 05, 2014 at 11:58:35PM -0400, Mike Frysinger wrote:
>> On Wed 06 Aug 2014 12:31:36 Masatake YAMATO wrote:
> [...]
>> > A problem is that many libraries wrapping netlink interface are
>> > distributed under term of GPL or LGPL. I'm not sure the code using the
>> > library is acceptable to strace project. If not acceptable, you have
>> > to decode the packet of netlink by yourself.
>>
>> libnl is LGPL, so linking against it optionally should be OK (strace
would
>> still be BSD).  since it's actively developed and commonly used (by
wireless
>> tools), i'd start there.
>
> Looks like there are no other viable options but libnl.

Do we really need libnl? So far the code samples I have seen that does not
use libnl seems fairly straightforward.

https://github.com/kristrev/inet-diag-example/blob/master/inet_monitor.c


Thanks,
-- zm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140807/07a84c00/attachment.html>


More information about the Strace-devel mailing list