Thread (3 messages) 3 messages, 3 authors, 2003-05-21

Re: Patch for NETLINK_TCPDIAG

From: <hidden>
Date: 2003-05-21 02:26:15

Hello!
I am not sure if there is a reason why ACK cannot be set for
NETLINK_TCPDIAG.
No reasons, indeed.
If it is settable, please apply following patch.
OK.

quoted hunk ↗ jump to hunk
diff -ruN linux-2.5.68.org/net/ipv4/tcp_diag.c linux-2.5.68/net/ipv4/tcp_diag.c
--- linux-2.5.68.org/net/ipv4/tcp_diag.c  2003-05-20 11:38:06.000000000 -0700
+++ linux-2.5.68/net/ipv4/tcp_diag.c      2003-05-20 11:39:48.000000000 -0700
@@ -609,7 +609,7 @@
            if (nlh->nlmsg_len < sizeof(*nlh) || skb->len < nlh->nlmsg_len)
                  return;
            err = tcpdiag_rcv_msg(skb, nlh);
-           if (err)
+           if (err || nlh->nlmsg_flags & NLM_F_ACK)
                  netlink_ack(skb, nlh, err);
      }
 }
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help