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

Submitted by Cyrill Gorcunov on Sept. 13, 2018, 7:57 p.m.

Details

Message ID 20180913195758.30566-7-gorcunov@gmail.com
State Accepted
Series "net: Add support for raw inet sockets"
Headers show

Commit Message

Cyrill Gorcunov Sept. 13, 2018, 7:57 p.m.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 criu/sk-inet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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;