[CRIU] [PATCH 5/8] crit: Add socket states decoding

Cyrill Gorcunov gorcunov at openvz.org
Wed Nov 1 16:19:22 MSK 2017


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 lib/py/images/pb2dict.py | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/lib/py/images/pb2dict.py b/lib/py/images/pb2dict.py
index 367557f676ef..5f098f800321 100644
--- a/lib/py/images/pb2dict.py
+++ b/lib/py/images/pb2dict.py
@@ -145,7 +145,16 @@ sk_maps = {
 			 3: 'RAW',
 			 5: 'SEQPACKET',
 			10: 'PACKET' },
-	'state'     : { 1: 'ESTABLISHED', 7: 'CLOSE', 10: 'LISTEN' },
+	'state'     : {  1: 'ESTABLISHED',
+			 2: 'SYN_SENT',
+			 3: 'SYN_RECV',
+			 4: 'FIN_WAIT1',
+			 5: 'FIN_WAIT2',
+			 6: 'TIME_WAIT',
+			 7: 'CLOSE',
+			 8: 'CLOSE_WAIT',
+			 9: 'LAST_ACK',
+			10: 'LISTEN' },
 	'proto'     : {   0: 'IP',
 			  6: 'TCP',
 			 17: 'UDP',
-- 
2.7.5



More information about the CRIU mailing list