2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

udp: Allow dumping udp sockets

Just a small fixlet in can_dump_inet_sk.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Pavel Emelyanov
2012-03-02 15:48:08 +04:00
committed by Cyrill Gorcunov
parent 625c45ea79
commit b198d76e40

View File

@@ -207,8 +207,11 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk)
return 0;
}
if (sk->type == SOCK_DGRAM)
return 1;
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;
}