diff options
author | Jon Maloy <jon.maloy@ericsson.com> | 2018-03-22 20:42:52 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-23 18:12:18 +0100 |
commit | 52dfae5c85a4c1078e9f1d5e8947d4a25f73dd81 (patch) | |
tree | 86cc334de0ac0f6dad6ebd55fdcdcee97ac50841 /net/tipc/net.h | |
parent | tipc: handle collisions of 32-bit node address hash values (diff) | |
download | linux-52dfae5c85a4c1078e9f1d5e8947d4a25f73dd81.tar.xz linux-52dfae5c85a4c1078e9f1d5e8947d4a25f73dd81.zip |
tipc: obtain node identity from interface by default
Selecting and explicitly configuring a TIPC node identity may be
unwanted in some cases.
In this commit we introduce a default setting if the identity has not
been set at the moment the first bearer is enabled. We do this by
using a raw copy of a unique identifier from the used interface: MAC
address in the case of an L2 bearer, IPv4/IPv6 address in the case
of a UDP bearer.
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/net.h')
-rw-r--r-- | net/tipc/net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tipc/net.h b/net/tipc/net.h index 08efa6010022..09ad02b50bb1 100644 --- a/net/tipc/net.h +++ b/net/tipc/net.h @@ -41,6 +41,7 @@ extern const struct nla_policy tipc_nl_net_policy[]; +int tipc_net_init(struct net *net, u8 *node_id, u32 addr); void tipc_net_finalize(struct net *net, u32 addr); void tipc_net_stop(struct net *net); int tipc_nl_net_dump(struct sk_buff *skb, struct netlink_callback *cb); |