lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <op.vx3hzgtw6ywr33@esapekka-pc.rad1>
Date:	Mon, 4 Jul 2011 15:51:06 +0300
From:	Esa-Pekka Pyokkimies <esa-pekka.pyokkimies@...nesoft.com>
To:	<netdev@...r.kernel.org>
Subject: [PATCH] net/core: Make urgent data inline by default

Make urgent data inline by default. As explained in RFC 6093, urgent
data should never be handled out-of-band.

"The TCP urgent mechanism is NOT a mechanism for sending "out-of-band"
  data: the so-called "urgent data" should be delivered "in-line" to
  the TCP user."

Signed-off-by: Esa-Pekka Pyokkimies <esa-pekka.pyokkimies@...nesoft.com>

---
  net/core/sock.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/core/sock.c b/net/core/sock.c
index 6e81978..83234bd 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -1985,6 +1985,7 @@ void sock_init_data(struct socket *sock, struct sock  
*sk)
         sk_set_socket(sk, sock);

         sock_set_flag(sk, SOCK_ZAPPED);
+	sock_set_flag(sk, SOCK_URGINLINE);

         if (sock) {
                 sk->sk_type     =       sock->type;
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ