]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
tipc: Update destination node field on incoming multicast messages
authorAllan Stephens <allan.stephens@windriver.com>
Mon, 18 Apr 2011 14:14:26 +0000 (10:14 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 10 May 2011 20:03:52 +0000 (16:03 -0400)
Sets the destination node field of an incoming multicast message
to the receiving node's network address before handing off the message
to each receiving port. This ensures that, in the event the destination
port returns the message to the sender, the sender can identify which
node the destination port belonged to.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/port.c

index ac64037514f3230d3ad04b56a7b90f96ec723121..9f2ff12cf4366bc02e1d6d8572599248bf682e8a 100644 (file)
@@ -164,6 +164,7 @@ void tipc_port_recv_mcast(struct sk_buff *buf, struct port_list *dp)
        /* Deliver a copy of message to each destination port */
 
        if (dp->count != 0) {
+               msg_set_destnode(msg, tipc_own_addr);
                if (dp->count == 1) {
                        msg_set_destport(msg, dp->ports[0]);
                        tipc_port_recv_msg(buf);