/* Note: Address is not captured if not requested by receiver.  */
static void set_orig_addr(struct msghdr *m, struct tipc_msg *msg)
/* Note: Address is not captured if not requested by receiver.  */
static void set_orig_addr(struct msghdr *m, struct tipc_msg *msg)
{
	struct sockaddr_tipc *addr = (struct sockaddr_tipc *)m->msg_name;
	if (addr) {
		addr->family = AF_TIPC;
		addr->addrtype = TIPC_ADDR_ID;
		addr->addr.id.ref = msg_origport(msg);
		addr->addr.id.node = msg_orignode(msg);
		addr->addr.name.domain = 0;
		addr->scope = 0;
		m->msg_namelen = sizeof(struct sockaddr_tipc);
	}
}