Thread (8 messages) 8 messages, 3 authors, 2012-10-23

Re: [PATCH 3/3] sock-diag: Report shutdown for inet and unix sockets

flat view

From: Eric Dumazet <hidden>
Date: 2012-10-23 16:53:19

On Tue, 2012-10-23 at 20:28 +0400, Pavel Emelyanov wrote:
Add ext bits for inet-diag and unix-diag and report sk_shutdown state.
quoted hunk ↗ jump to hunk
 
+	if (ext & (1 << (INET_DIAG_SHUTDOWN - 1)))
+		if (sock_diag_put_shutdown(sk, skb, INET_DIAG_SHUTDOWN))
+			goto errout;
+
I dont feel the need to make this conditional and consume one bit.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help