diff options
author | Christoph Paasch <christoph.paasch@uclouvain.be> | 2012-08-20 02:52:09 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-21 14:49:11 -0700 |
commit | 1a7b27c97ce675b42eeb7bfaf6e15c34f35c8f95 (patch) | |
tree | ab7bbaf25d1c8c0bc73107c97364295a688c1665 /kernel/pid.c | |
parent | 144d56e91044181ec0ef67aeca91e9a8b5718348 (diff) |
ipv4: Use newinet->inet_opt in inet_csk_route_child_sock()
Since 0e734419923bd ("ipv4: Use inet_csk_route_child_sock() in DCCP and
TCP."), inet_csk_route_child_sock() is called instead of
inet_csk_route_req().
However, after creating the child-sock in tcp/dccp_v4_syn_recv_sock(),
ireq->opt is set to NULL, before calling inet_csk_route_child_sock().
Thus, inside inet_csk_route_child_sock() opt is always NULL and the
SRR-options are not respected anymore.
Packets sent by the server won't have the correct destination-IP.
This patch fixes it by accessing newinet->inet_opt instead of ireq->opt
inside inet_csk_route_child_sock().
Reported-by: Luca Boccassi <luca.boccassi@gmail.com>
Signed-off-by: Christoph Paasch <christoph.paasch@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/pid.c')
0 files changed, 0 insertions, 0 deletions