]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Enhance error checking of published names
authorAllan Stephens <allan.stephens@windriver.com>
Thu, 26 Apr 2012 21:57:17 +0000 (17:57 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 26 Apr 2012 22:15:48 +0000 (18:15 -0400)
commit4cacf230fd04d4608c5aa32e675534dc9eb620eb
tree09a5003c9b116cdde9f12acec508067ee8215333
parent5999cadedefd285a1b285496e155cc47273f586d
tipc: Enhance error checking of published names

Consolidates validation of scope and name sequence range values into
a single routine where it applies both to local name publications
and to name publications issued by other nodes in the network. This
change means that the scope value for non-local publications is now
validated and the name sequence range for local publications is now
validated only once. Additionally, a publication attempt that fails
validation now creates an entry in the system log file only if debugging
capabilities have been enabled; this prevents the system log from being
cluttered up with messages caused by a defective application or network
node.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/name_table.c
net/tipc/port.c