mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 09:39:13 +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:
parent
625c45ea79
commit
b198d76e40
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue