diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2012-04-18 09:42:56 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-04-19 15:46:50 -0400 |
commit | 9d52ce4bd3fa9e0cf1658791f2c680e20e0598a1 (patch) | |
tree | d3ca5f3602fbd60719d52d291b87dfc5dad71e2d /net/tipc | |
parent | 630d920dcae546c4e8ef6c01e7c49b2f42822c5f (diff) | |
download | op-kernel-dev-9d52ce4bd3fa9e0cf1658791f2c680e20e0598a1.zip op-kernel-dev-9d52ce4bd3fa9e0cf1658791f2c680e20e0598a1.tar.gz |
tipc: Ensure network address change doesn't impact configuration service
Enhances command validation done by TIPC's configuration service so
that it works properly even if the node's network address is changed in
mid-operation. The default node address of <0.0.0> is now recognized as an
alias for "this node" even after a new network address has been assigned.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/config.c b/net/tipc/config.c index f76d3b1..f5458ed 100644 --- a/net/tipc/config.c +++ b/net/tipc/config.c @@ -290,7 +290,7 @@ struct sk_buff *tipc_cfg_do_cmd(u32 orig_node, u16 cmd, const void *request_area /* Check command authorization */ - if (likely(orig_node == tipc_own_addr)) { + if (likely(in_own_node(orig_node))) { /* command is permitted */ } else if (cmd >= 0x8000) { rep_tlv_buf = tipc_cfg_reply_error_string(TIPC_CFG_NOT_SUPPORTED |