Patchwork [net-next,15/16] tipc: Ensure network address change doesn't impact rejected message

mail settings
Submitter Paul Gortmaker
Date April 20, 2012, 9:05 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/154155/
State Accepted
Delegated to: David Miller
Headers show


Paul Gortmaker - April 20, 2012, 9:05 p.m.
From: Allan Stephens <>

Revises handling of a rejected message to ensure that a locally
originated message is returned properly even if the node's network
address is changed in mid-operation. The routine now treats the
default node address of <0.0.0> as an alias for "this node" when
determining where to send a returned message.

Signed-off-by: Allan Stephens <>
Signed-off-by: Paul Gortmaker <>
 net/tipc/port.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/net/tipc/port.c b/net/tipc/port.c
index c50819b..0f40b10 100644
--- a/net/tipc/port.c
+++ b/net/tipc/port.c
@@ -444,7 +444,7 @@  int tipc_reject_msg(struct sk_buff *buf, u32 err)
 	/* send returned message & dispose of rejected message */
 	src_node = msg_prevnode(msg);
-	if (src_node == tipc_own_addr)
+	if (in_own_node(src_node))
 		tipc_link_send(rbuf, src_node, msg_link_selector(rmsg));