mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-04 08:15:37 +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:
committed by
Cyrill Gorcunov
parent
625c45ea79
commit
b198d76e40
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user