mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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 <allan.stephens@windriver.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
This commit is contained in:
parent
7462b9e9f6
commit
7f47f5c751
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue