From: Allan Stephens Date: Mon, 18 Apr 2011 14:14:26 +0000 (-0400) Subject: tipc: Update destination node field on incoming multicast messages X-Git-Tag: MMI-PSA29.97-13-9~19691^2~111^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7f47f5c751c93f2ca9e7f0ef6c0915162ac9e076;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git tipc: Update destination node field on incoming multicast messages 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 Signed-off-by: Paul Gortmaker --- diff --git a/net/tipc/port.c b/net/tipc/port.c index ac64037514f3..9f2ff12cf436 100644 --- a/net/tipc/port.c +++ b/net/tipc/port.c @@ -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);