[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120311.195542.1995263719633128071.davem@davemloft.net>
Date: Sun, 11 Mar 2012 19:55:42 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: therbert@...gle.com
Cc: netdev@...r.kernel.org, eric.dumazet@...il.com
Subject: Re: [PATCH] net: Provide SYN packet for passive connections
From: Tom Herbert <therbert@...gle.com>
Date: Sun, 11 Mar 2012 19:48:46 -0700 (PDT)
> This patch allows a server application to get the TCP SYN packets for
> its passive connections. This is useful if the server is doing
> fingerprinting of clients based on SYN packet contents.
>
> Two socket options are added: TCP_SAVE_SYN and TCP_SAVED_SYN. The
> first is used on a listener socket to enable saving the SYN packets
> for child connections. The latter is used to retrieve the SYN for
> and accepted connection. TCP_SAVED_SYN is read once, it frees the
> saved SYN packet.
>
> The data returned TCP_SAVED_SYN is the IP header (v4 or v6) through
> the TCP header.
>
> Signed-off-by: Tom Herbert <therbert@...gle.com>
I dunno, bloating up the socket and the mini-req structure by 8+ bytes
for what's essentially a very fringe feature?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists