[CRIU] [PATCH 1/3] protobuf: use generic show function for tcp streams

Kinsbursky Stanislav skinsbursky at openvz.org
Thu Jul 26 05:51:12 EDT 2012


Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>

---
 sk-tcp.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/sk-tcp.c b/sk-tcp.c
index 692c085..c86f19b 100644
--- a/sk-tcp.c
+++ b/sk-tcp.c
@@ -501,7 +501,7 @@ void tcp_unlock_connections(void)
 		nf_unlock_connection_info(ii);
 }
 
-void show_tcp_stream(int fd, struct cr_options *opt)
+void show_tcp_stream_pretty(int fd, struct cr_options *opt)
 {
 	TcpStreamEntry *tse;
 	pr_img_head(CR_FD_TCP_STREAM);
@@ -550,6 +550,11 @@ out:
 	pr_img_tail(CR_FD_TCP_STREAM);
 }
 
+void show_tcp_stream(int fd, struct cr_options *opt)
+{
+	pb_show_vertical(fd, tcp_stream_entry);
+}
+
 int check_tcp_repair(void)
 {
 	int sk, ret;



More information about the CRIU mailing list