netdev
[Top] [All Lists]

[PATCH] NET: Set NLM_F_MULTI for neighbour rtnetlink messages to userspa

To: "David S. Miller" <davem@xxxxxxxxxxxxx>
Subject: [PATCH] NET: Set NLM_F_MULTI for neighbour rtnetlink messages to userspace
From: Thomas Graf <tgraf@xxxxxxx>
Date: Thu, 20 Jan 2005 15:31:35 +0100
Cc: netdev@xxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
Signed-off-by: Thomas Graf <tgraf@xxxxxxx>

--- linux-2.6.10-bk14.orig/net/core/neighbour.c 2005-01-13 10:56:33.000000000 
+0100
+++ linux-2.6.10-bk14/net/core/neighbour.c      2005-01-20 15:29:14.000000000 
+0100
@@ -1556,6 +1556,7 @@
                                         sizeof(struct ndmsg));
        struct ndmsg *ndm = NLMSG_DATA(nlh);
 
+       nlh->nlmsg_flags = pid ? NLM_F_MULTI : 0;
        ndm->ndm_family  = n->ops->family;
        ndm->ndm_flags   = n->flags;
        ndm->ndm_type    = n->type;

<Prev in Thread] Current Thread [Next in Thread>