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

Submitted by Cyrill Gorcunov on March 21, 2018, 10:10 p.m.

Details

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

Commit Message

Cyrill Gorcunov March 21, 2018, 10:10 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 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;