tipc: Add network address mask helper routines
authorAllan Stephens <Allan.Stephens@windriver.com>
Wed, 23 Feb 2011 16:44:49 +0000 (11:44 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 13 Mar 2011 20:35:16 +0000 (16:35 -0400)
commita3796f895ff2917aea331a8d40036c73452b2203
tree38487e8b7cc5b66a815966410e8ddcdcd5f44783
parentaa8472948487432bacbd099b86e313bc16319495
tipc: Add network address mask helper routines

Introduces a pair of helper routines that convert the network address
for a TIPC node into the network address for its cluster or zone.

This is a cosmetic change designed to avoid future errors caused by
the incorrect use of address bitmasks, and does not alter the existing
operation of TIPC.

Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/addr.c
net/tipc/addr.h
net/tipc/node.c