Thread (2 messages) 2 messages, 1 author, 2016-09-20

Re: [PATCH] netfilter: xt_socket: fix transparent match for IPv6 request sockets

flat view

From: Eric Dumazet <hidden>
Date: 2016-09-20 15:05:37
Also in: netfilter-devel

Possibly related (same subject, not in this thread)

On Tue, 2016-09-20 at 08:01 -0700, Eric Dumazet wrote:
quoted hunk ↗ jump to hunk
Something like :
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 3ebf45b38bc3..0fccfd6cc258 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -6264,6 +6264,7 @@ int tcp_conn_request(struct request_sock_ops *rsk_ops,
 	/* Note: tcp_v6_init_req() might override ir_iif for link locals */
 	inet_rsk(req)->ir_iif = inet_request_bound_dev_if(sk, skb);
 
+	ireq->no_srccheck = inet_sk(sk)->transparent;
Since there is no @ireq there, simply use :

	inet_rsk(req)->no_srccheck = inet_sk(sk)->transparent;

 	af_ops->init_req(req, sk, skb);
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help