netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net/core: Make urgent data inline by default
@ 2011-07-04 12:51 Esa-Pekka Pyokkimies
  2011-07-04 23:38 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Esa-Pekka Pyokkimies @ 2011-07-04 12:51 UTC (permalink / raw)
  To: netdev

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@stonesoft.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;

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-05  5:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-04 12:51 [PATCH] net/core: Make urgent data inline by default Esa-Pekka Pyokkimies
2011-07-04 23:38 ` David Miller
2011-07-05  5:41   ` Esa-Pekka Pyokkimies

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).