Commit e34fcc70 authored by Pavel Emelyanov's avatar Pavel Emelyanov

tcp: Move refresh routine into dump one

This is prerequisite for the next patch and, actually, for the libsoccr :)
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 35f209ff
...@@ -145,11 +145,6 @@ static int tcp_repair_establised(int fd, struct inet_sk_desc *sk) ...@@ -145,11 +145,6 @@ static int tcp_repair_establised(int fd, struct inet_sk_desc *sk)
goto err3; goto err3;
list_add_tail(&sk->rlist, &cpt_tcp_repair_sockets); list_add_tail(&sk->rlist, &cpt_tcp_repair_sockets);
ret = refresh_inet_sk(sk);
if (ret < 0)
goto err1;
return 0; return 0;
err3: err3:
...@@ -322,6 +317,10 @@ static int dump_tcp_conn_state(struct inet_sk_desc *sk) ...@@ -322,6 +317,10 @@ static int dump_tcp_conn_state(struct inet_sk_desc *sk)
TcpStreamEntry tse = TCP_STREAM_ENTRY__INIT; TcpStreamEntry tse = TCP_STREAM_ENTRY__INIT;
char *in_buf, *out_buf; char *in_buf, *out_buf;
ret = refresh_inet_sk(sk);
if (ret < 0)
goto err_r;
/* /*
* Read queue * Read queue
*/ */
...@@ -408,6 +407,7 @@ err_opt: ...@@ -408,6 +407,7 @@ err_opt:
err_out: err_out:
xfree(in_buf); xfree(in_buf);
err_in: err_in:
err_r:
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment