| To: | "David S. Miller" <davem@xxxxxxxxxx>, Alexey Kuznetsov <kuznet@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Patch for NETLINK_TCPDIAG |
| From: | Krishna Kumar <kumarkr@xxxxxxxxxx> |
| Date: | Tue, 20 May 2003 11:49:43 -0700 |
| Cc: | netdev@xxxxxxxxxxx, linux-net@xxxxxxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Hi,
I am not sure if there is a reason why ACK cannot be set for
NETLINK_TCPDIAG.
If it is settable, please apply following patch.
thanks,
- KK
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);
}
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2.5.69++] fixup for latest netdev change., Stephen Hemminger |
|---|---|
| Next by Date: | Re: [Fwd: [ANNOUNCE] Layer-7 Filter for Linux QoS], Ethan Sommer |
| Previous by Thread: | [PATCH 2.5.69++] fixup for latest netdev change., Stephen Hemminger |
| Next by Thread: | Re: Patch for NETLINK_TCPDIAG, kuznet |
| Indexes: | [Date] [Thread] [Top] [All Lists] |