From: Willy Tarreau <w@1wt.eu>
To: Swarm <thesw4rm@pm.me>
Cc: netdev@vger.kernel.org
Subject: Re: Verify ACK packets in handshake in kernel module (Access TCP state table)
Date: Sat, 21 Sep 2019 05:15:29 +0200 [thread overview]
Message-ID: <20190921031529.GG1889@1wt.eu> (raw)
In-Reply-To: <20190920234346.kz22qswwvjxjins7@chillin-at-nou>
On Fri, Sep 20, 2019 at 11:43:50PM +0000, Swarm wrote:
> First time emailing to this mailing list so please let me know if I made a
> mistake in how I sent it. I'm trying to receive a notification from the
> kernel once it verifies an ACK packet in a handshake. Problem is, there is no
> API or kernel resource I've seen that supports this feature for both
> syncookies and normal handshakes. Where exactly in the kernel does the ACK
> get verified? If there isn't a way to be notified of it, where should I start
> adding that feature into the kernel?
Just searching for TCP_ESTABLISHED immediately brought me to tcp_input.c
(tcp_rcv_state_process() to be precise), so I'm not sure you've searched
that much. As you've noticed there's nothing specifically called in this
case, but in practice a caller of accept() on a listening socket will be
woken up.
Hoping this helps,
Willy
next prev parent reply other threads:[~2019-09-21 3:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-20 23:43 Verify ACK packets in handshake in kernel module (Access TCP state table) Swarm
2019-09-21 3:15 ` Willy Tarreau [this message]
2019-09-21 4:18 ` Yadunandan Pillai
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=20190921031529.GG1889@1wt.eu \
--to=w@1wt.eu \
--cc=netdev@vger.kernel.org \
--cc=thesw4rm@pm.me \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).