From: Tim Hockin <thockin@sun.com>
To: davem@redhat.com
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
alan@redhat.com
Subject: [PATCH] save source address on accept()
Date: Thu, 31 May 2001 18:29:04 -0700 [thread overview]
Message-ID: <3B16EFE0.D0C44FB8@sun.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 265 bytes --]
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.com
[-- Attachment #2: tcp-saveaddr.diff --]
[-- Type: text/plain, Size: 397 bytes --]
diff -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);
next reply other threads:[~2001-06-01 1:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-01 1:29 Tim Hockin [this message]
2001-06-01 3:21 ` [PATCH] save source address on accept() David S. Miller
2001-06-01 3:42 ` David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B16EFE0.D0C44FB8@sun.com \
--to=thockin@sun.com \
--cc=alan@redhat.com \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.