diff options
author | Erik Hugne <erik.hugne@ericsson.com> | 2015-02-27 08:56:57 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-27 18:18:48 -0500 |
commit | 91e2eb56845a018e5c691acf87137baf05316c4e (patch) | |
tree | b26f06e9c4f2ff6c1d5c89fc349b0daddb0d0ed7 /net/tipc/bearer.h | |
parent | afaa3f65f65fda2e7b190aac7e2a75d9a2a77cb6 (diff) | |
download | linux-91e2eb56845a018e5c691acf87137baf05316c4e.tar.gz linux-91e2eb56845a018e5c691acf87137baf05316c4e.tar.xz |
tipc: rename media/msg related definitions
The TIPC_MEDIA_ADDR_SIZE and TIPC_MEDIA_ADDR_OFFSET names
are misleading, as they actually define the size and offset of
the whole media info field and not the address part. This patch
does not have any functional changes.
Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/bearer.h')
-rw-r--r-- | net/tipc/bearer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/bearer.h b/net/tipc/bearer.h index 6b17795ff8bc..1a233271d1b5 100644 --- a/net/tipc/bearer.h +++ b/net/tipc/bearer.h @@ -50,7 +50,7 @@ * - the field's actual content and length is defined per media * - remaining unused bytes in the field are set to zero */ -#define TIPC_MEDIA_ADDR_SIZE 32 +#define TIPC_MEDIA_INFO_SIZE 32 #define TIPC_MEDIA_TYPE_OFFSET 3 /* @@ -76,7 +76,7 @@ struct tipc_node_map { * @broadcast: non-zero if address is a broadcast address */ struct tipc_media_addr { - u8 value[TIPC_MEDIA_ADDR_SIZE]; + u8 value[TIPC_MEDIA_INFO_SIZE]; u8 media_id; u8 broadcast; }; |