tipc: fix neighbor detection problem after hw address change
authorErik Hugne <erik.hugne@ericsson.com>
Fri, 28 Mar 2014 09:32:08 +0000 (10:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Mar 2014 18:46:29 +0000 (14:46 -0400)
commita21a584d6720ce349b05795b9bcfab3de8e58419
treeae61966b3e5ea3845959a2e506c2cd6390081091
parentc8c3d7e2449a9e63c3cb72d24cebe956229af427
tipc: fix neighbor detection problem after hw address change

If the hardware address of a underlying netdevice is changed, it is
not enough to simply reset the bearer/links over this device. We
also need to reflect this change in the TIPC bearer and node
discovery structures aswell.

This patch adds the necessary reinitialization of the node disovery
mechanism following a hardware address change so that the correct
originating media address is advertised in the discovery messages.

Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Reported-by: Dong Liu <dliu.cn@gmail.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bearer.c
net/tipc/bearer.h