Thread (13 messages) flat view 13 messages, 5 authors, 2013-03-21

Re: [PATCH 2/2] netlink: Diag core and basic socket info dumping

From: Thomas Graf <tgraf@suug.ch>
Date: 2013-03-21 14:41:24
Also in: lkml

On 03/21/13 at 06:31pm, Andrew Vagin wrote:
The code in ss looks like you described:
        struct rtattr *tb[UNIX_DIAG_MAX+1];
...
        parse_rtattr(tb, UNIX_DIAG_MAX, (struct rtattr*)(r+1),
                     nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*r)));


        struct rtattr *tb[NETLINK_DIAG_MAX+1];
...
        parse_rtattr(tb, NETLINK_DIAG_MAX, (struct rtattr*)(r+1),
                     nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*r)))

I think I should only update headers... Or I don't understand something.
Right, fixing the headers will resolve the issue.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help