tipc: Hide media-specific addressing details from generic bearer code
authorAllan Stephens <allan.stephens@windriver.com>
Fri, 7 Oct 2011 19:19:11 +0000 (15:19 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 27 Dec 2011 16:33:36 +0000 (11:33 -0500)
commit3d749a6a26b0811b4b2bb4ec2c47cd630a6bbf88
tree57616bd9e10a70b9146cb46ccd8905ee2a75475d
parent4d163a326fa4868cce1bb75dd95855d40e5497c6
tipc: Hide media-specific addressing details from generic bearer code

Reworks TIPC's media address data structure and associated processing
routines to transfer all media-specific details of address conversion
to the associated TIPC media adaptation code. TIPC's generic bearer code
now only needs to know which media type an address is associated with
and whether or not it is a broadcast address, and totally ignores the
"value" field that contains the actual media-specific addressing info.

These changes eliminate the need for a number of endianness conversion
operations and will make it easier for TIPC to support new media types
in the future.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/bearer.c
net/tipc/bearer.h
net/tipc/discover.c
net/tipc/eth_media.c
net/tipc/msg.c
net/tipc/msg.h