Thread (3 messages) 3 messages, 3 authors, 2014-02-10

Re: [PATCH] iproute: Properly handle protocol level diag module absence

From: François-Xavier Le Bail <hidden>
Date: 2014-01-29 19:42:50

On Tue, 1/28/14, Pavel Emelyanov [off-list ref] wrote:
When *_diag module is missing in the kernel, the ss tool should go
ad read legacry /proc/* files.
This is the case when all *_diag stuff is missing, but in case the
inet_diag.ko is loaded, but (tcp|udp)_diag.ko is not, the ss tool
doesn't notice this and produces empty output. The reason for that
is -- error from the inet_diag module (which means, that e.g. the
udp_diag is missing) is reported in the NLMSG_DONE message body.
That said, we need to check the NLMSG_DONE's message return code
and act respectively.
Reported-by: François-Xavier Le Bail <redacted>
Signed-off-by: Pavel Emelyanov <redacted>
---
Tested-by: François-Xavier Le Bail <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help