[CRIU] [PATCH 2/3] net: don't prevent to dump ipv6 tcp connections

Andrey Vagin avagin at openvz.org
Wed Nov 21 08:32:45 EST 2012


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 sockets.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sockets.c b/sockets.c
index 2539ecb..475ce6a 100644
--- a/sockets.c
+++ b/sockets.c
@@ -486,7 +486,7 @@ int collect_sockets(int pid)
 	req.r.i.sdiag_protocol	= IPPROTO_TCP;
 	req.r.i.idiag_ext	= 0;
 	/* Only listening sockets supported yet */
-	req.r.i.idiag_states	= 1 << TCP_LISTEN;
+	req.r.i.idiag_states	= (1 << TCP_LISTEN) | (1 << TCP_ESTABLISHED);
 	tmp = do_rtnl_req(nl, &req, sizeof(req), inet_receive_one, &req.r.i);
 	if (tmp)
 		err = tmp;
-- 
1.7.11.7



More information about the CRIU mailing list