lkml.org 
[lkml]   [2001]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] save source address on accept()
All,

attached is a (small) patch which saves the src address on tcp_accept().
Please let me know if there are any problems taking this for general
inclusion.

Tim

--
Tim Hockin
Systems Software Engineer
Sun Microsystems, Cobalt Server Appliances
thockin@sun.comdiff -ruN dist-2.4.5/net/ipv4/tcp.c cobalt-2.4.5/net/ipv4/tcp.c
--- dist-2.4.5/net/ipv4/tcp.c Wed May 16 10:31:27 2001
+++ cobalt-2.4.5/net/ipv4/tcp.c Thu May 31 14:33:23 2001
@@ -2138,6 +2138,7 @@
tp->accept_queue_tail = NULL;

newsk = req->sk;
+ newsk->rcv_saddr = req->af.v4_req.loc_addr;
tcp_acceptq_removed(sk);
tcp_openreq_fastfree(req);
BUG_TRAP(newsk->state != TCP_SYN_RECV);
\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.081 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site