[PATCH] Add netlink domain sockets support to socketutils

Dmitry V. Levin ldv at altlinux.org
Sun May 15 13:21:19 UTC 2016


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" <ldv at altlinux.org> wrote:
> >> +	if (netlink_proto) {
> >> +		if (asprintf(&details, "%s:[%s]", proto_name,
> >> +			    netlink_proto) < 0)
> > 
> > I've tried this with "ip l" command, and it printed
> > <NETLINK:[NETLINK_ROUTE]>, which looks redundant.
> >
> > Wouldn't it be more useful to print just netlink_proto but also add more
> > netlink specific information, e.g. <NETLINK_ROUTE:[ndiag_portid]>?
> 
> How about <NETLINK:[ROUTE]> ?

<NETLINK:[ROUTE]> or <NETLINK:[ROUTE:ndiag_portid]> is fine.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160515/bcc18920/attachment.bin>


More information about the Strace-devel mailing list