|
@@ -179,7 +179,7 @@ static struct sk_buff *cfg_set_own_addr(void)
|
|
|
if (!tipc_addr_node_valid(addr))
|
|
|
return tipc_cfg_reply_error_string(TIPC_CFG_INVALID_VALUE
|
|
|
" (node address)");
|
|
|
- if (tipc_mode == TIPC_NET_MODE)
|
|
|
+ if (tipc_own_addr)
|
|
|
return tipc_cfg_reply_error_string(TIPC_CFG_NOT_SUPPORTED
|
|
|
" (cannot change node address once assigned)");
|
|
|
|
|
@@ -268,7 +268,7 @@ static struct sk_buff *cfg_set_netid(void)
|
|
|
if (value < 1 || value > 9999)
|
|
|
return tipc_cfg_reply_error_string(TIPC_CFG_INVALID_VALUE
|
|
|
" (network id must be 1-9999)");
|
|
|
- if (tipc_mode == TIPC_NET_MODE)
|
|
|
+ if (tipc_own_addr)
|
|
|
return tipc_cfg_reply_error_string(TIPC_CFG_NOT_SUPPORTED
|
|
|
" (cannot change network id once TIPC has joined a network)");
|
|
|
tipc_net_id = value;
|