inet: raw -- Prepare gen_uncon_sk for raw sockets

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2018-09-13 22:57:49 +03:00 committed by Andrei Vagin
parent 536e57982e
commit 31c1955d13

View file

@ -271,7 +271,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;