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>
这个提交包含在:
@@ -53,7 +53,7 @@ static int tipc_eth_addr2str(struct tipc_media_addr *addr,
|
||||
/* Convert from media address format to discovery message addr format */
|
||||
static int tipc_eth_addr2msg(char *msg, struct tipc_media_addr *addr)
|
||||
{
|
||||
memset(msg, 0, TIPC_MEDIA_ADDR_SIZE);
|
||||
memset(msg, 0, TIPC_MEDIA_INFO_SIZE);
|
||||
msg[TIPC_MEDIA_TYPE_OFFSET] = TIPC_MEDIA_TYPE_ETH;
|
||||
memcpy(msg + ETH_ADDR_OFFSET, addr->value, ETH_ALEN);
|
||||
return 0;
|
||||
|
在新工单中引用
屏蔽一个用户