[CRIU] [PATCH 06/15] inet: raw -- Prepare gen_uncon_sk for raw sockets

Cyrill Gorcunov gorcunov at gmail.com
Thu Sep 13 22:57:49 MSK 2018


Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 criu/sk-inet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/sk-inet.c b/criu/sk-inet.c
index a2059ec6921c..0850350a3480 100644
--- a/criu/sk-inet.c
+++ b/criu/sk-inet.c
@@ -264,7 +264,7 @@ static struct inet_sk_desc *gen_uncon_sk(int lfd, const struct fd_parms *p,
 
 	sk->sd.ino = p->stat.st_ino;
 
-	if (proto == IPPROTO_TCP) {
+	if (type != SOCK_RAW && proto == IPPROTO_TCP) {
 		struct {
 			__u8    tcpi_state;
 			__u8    tcpi_ca_state;
-- 
2.17.1



More information about the CRIU mailing list