[CRIU] [crtools-bot for Pavel Emelyanov ] udp: Allow dumping udp sockets

Cyrill Gorcunov gorcunov at openvz.org
Fri Mar 2 06:54:42 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit b198d76e4024864644cbb005dd2a1cc33a12ca55
Author: Pavel Emelyanov <xemul at parallels.com>
Date:   Fri Mar 2 15:48:08 2012 +0400

    udp: Allow dumping udp sockets
    
    Just a small fixlet in can_dump_inet_sk.
    
    Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 sockets.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/sockets.c b/sockets.c
index d3fb1d0..8a2f3ea 100644
--- a/sockets.c
+++ b/sockets.c
@@ -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;
 	}
 


More information about the CRIU mailing list