Commit b198d76e authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Cyrill Gorcunov

udp: Allow dumping udp sockets

Just a small fixlet in can_dump_inet_sk.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 625c45ea
...@@ -207,8 +207,11 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk) ...@@ -207,8 +207,11 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk)
return 0; return 0;
} }
if (sk->type == SOCK_DGRAM)
return 1;
if (sk->type != SOCK_STREAM) { if (sk->type != SOCK_STREAM) {
pr_err("Only stream inet sockets for now\n"); pr_err("Only stream and dgram inet sockets for now\n");
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment