[CRIU] [PATCH 05/10] inet: raw -- Prepare gen_uncon_sk for raw sockets

Cyrill Gorcunov gorcunov at gmail.com
Thu Mar 22 01:10:57 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 5bbc0cf9f87e..7dd0c879ad7e 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.14.3



More information about the CRIU mailing list