Design cmsg interface