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

Submitted by Cyrill Gorcunov on March 22, 2018, 9:13 a.m.

Details

Message ID 20180322091349.8867-6-gorcunov@gmail.com
State New
Series "inet: raw -- Add initial support for raw sockets"
Headers show

Commit Message

Cyrill Gorcunov March 22, 2018, 9:13 a.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 dc9c453fe8c0..2ab07d6f025a 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;