Re: [PATCH] Add netlink domain sockets support to socketutils

2016-05-15 Thread Fabien Siron
Quoting Dmitry V. Levin (2016-05-14 23:27:36) > On Fri, May 13, 2016 at 12:02:37PM +, Fabien Siron wrote: > > #include > > #include > > #include > > +#include > > This header first appeared in linux v3.10-rc1, but strace can be built > with older kernel headers. > > In similar cases of

Re: [PATCH] Add netlink domain sockets support to socketutils

2016-05-15 Thread Fabien Siron
Quoting Masatake YAMATO (2016-05-15 06:45:12) > On Sun, 15 May 2016 02:27:36 +0300, "Dmitry V. Levin" > wrote: > >> +if (netlink_proto) { > >> +if (asprintf(&details, "%s:[%s]", proto_name, > >> +netlink_proto) < 0) > > > > I've tried this with "ip l" comm

Re: [PATCH] Add netlink domain sockets support to socketutils

2016-05-15 Thread Dmitry V. Levin
On Sun, May 15, 2016 at 03:45:12PM +0900, Masatake YAMATO wrote: > On Sun, 15 May 2016 02:27:36 +0300, "Dmitry V. Levin" > wrote: > >> + if (netlink_proto) { > >> + if (asprintf(&details, "%s:[%s]", proto_name, > >> + netlink_proto) < 0) > > > > I've tried this wit

Re: [PATCH] Add netlink domain sockets support to socketutils

2016-05-15 Thread Dmitry V. Levin
On Sun, May 15, 2016 at 10:24:22AM +, Fabien Siron wrote: [...] > > > + } req = { > > > + .nlh = { > > > + .nlmsg_len = sizeof(req), > > > + .nlmsg_type = SOCK_DIAG_BY_FAMILY, > > > + .nlmsg_flags = NLM_F_DUMP | NLM_F_R