msg_buf -> buf