diff options
author | Erik Hugne <erik.hugne@ericsson.com> | 2015-02-27 08:56:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-27 18:18:48 -0500 |
commit | d76a436d50d1ebce352e1815eaea79a254b2b24f (patch) | |
tree | 6d5b3bdd02fd7586b54de631f806e76efcdbfb50 /net/tipc/bearer.h | |
parent | 91e2eb56845a018e5c691acf87137baf05316c4e (diff) | |
download | linux-stable-d76a436d50d1ebce352e1815eaea79a254b2b24f.tar.gz linux-stable-d76a436d50d1ebce352e1815eaea79a254b2b24f.tar.bz2 linux-stable-d76a436d50d1ebce352e1815eaea79a254b2b24f.zip |
tipc: make media address offset a common define
With the exception of infiniband media which does not use media
offsets, the media address is always located at offset 4 in the
media info field as defined by the protocol, so we move the
definition to the generic bearer.h
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tipc/bearer.h b/net/tipc/bearer.h index 1a233271d1b5..097aff08ad5b 100644 --- a/net/tipc/bearer.h +++ b/net/tipc/bearer.h @@ -52,6 +52,7 @@ */ #define TIPC_MEDIA_INFO_SIZE 32 #define TIPC_MEDIA_TYPE_OFFSET 3 +#define TIPC_MEDIA_ADDR_OFFSET 4 /* * Identifiers of supported TIPC media types |