IP and port associated with a socket fd

Masatake YAMATO yamato at redhat.com
Thu Aug 7 07:41:21 UTC 2014


On Thu, 7 Aug 2014 09:48:34 +0530, Zubin Mithra <zubin.mithra at gmail.com> wrote:
> 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

https://github.com/kristrev/inet-diag-example/issues/1

Masatake YAMATO
 
> 
> Thanks,
> -- zm




More information about the Strace-devel mailing list