diff options
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/link.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c index f89570c54f54..933764cdfe9a 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c | |||
@@ -1658,19 +1658,12 @@ void tipc_recv_msg(struct sk_buff *head, struct tipc_bearer *b_ptr) | |||
1658 | continue; | 1658 | continue; |
1659 | } | 1659 | } |
1660 | 1660 | ||
1661 | /* Discard unicast link messages destined for another node */ | ||
1662 | |||
1661 | if (unlikely(!msg_short(msg) && | 1663 | if (unlikely(!msg_short(msg) && |
1662 | (msg_destnode(msg) != tipc_own_addr))) | 1664 | (msg_destnode(msg) != tipc_own_addr))) |
1663 | goto cont; | 1665 | goto cont; |
1664 | 1666 | ||
1665 | /* Discard non-routeable messages destined for another node */ | ||
1666 | |||
1667 | if (unlikely(!msg_isdata(msg) && | ||
1668 | (msg_destnode(msg) != tipc_own_addr))) { | ||
1669 | if ((msg_user(msg) != CONN_MANAGER) && | ||
1670 | (msg_user(msg) != MSG_FRAGMENTER)) | ||
1671 | goto cont; | ||
1672 | } | ||
1673 | |||
1674 | /* Locate neighboring node that sent message */ | 1667 | /* Locate neighboring node that sent message */ |
1675 | 1668 | ||
1676 | n_ptr = tipc_node_find(msg_prevnode(msg)); | 1669 | n_ptr = tipc_node_find(msg_prevnode(msg)); |