Lines Matching refs:addr
41 static int tipc_eth_addr2str(struct tipc_media_addr *addr, in tipc_eth_addr2str() argument
47 sprintf(strbuf, "%pM", addr->value); in tipc_eth_addr2str()
52 static int tipc_eth_addr2msg(char *msg, struct tipc_media_addr *addr) in tipc_eth_addr2msg() argument
56 memcpy(msg + TIPC_MEDIA_ADDR_OFFSET, addr->value, ETH_ALEN); in tipc_eth_addr2msg()
62 struct tipc_media_addr *addr, in tipc_eth_raw2addr() argument
65 memset(addr, 0, sizeof(*addr)); in tipc_eth_raw2addr()
66 ether_addr_copy(addr->value, msg); in tipc_eth_raw2addr()
67 addr->media_id = TIPC_MEDIA_TYPE_ETH; in tipc_eth_raw2addr()
68 addr->broadcast = is_broadcast_ether_addr(addr->value); in tipc_eth_raw2addr()
74 struct tipc_media_addr *addr, in tipc_eth_msg2addr() argument
79 return tipc_eth_raw2addr(b, addr, msg); in tipc_eth_msg2addr()