From: Colin McCabe Subject: Re: [PATCHv2] cld: use XDR for all messages Date: Fri, 29 Jan 2010 17:01:00 -0800 Message-ID: <436f52801001291701u649caefdwce9dd2675d17a61d@mail.gmail.com> References: <1263577788-2081-1-git-send-email-cmccabe@alumni.cmu.edu> <4B57B01F.5080903@garzik.org> <436f52801001201838l450fbe09i6f2f9d2b6ceebe6d@mail.gmail.com> <436f52801001261322k4f6273ccl9f6a21f6ccb123df@mail.gmail.com> <4B5F6893.3070906@garzik.org> <436f52801001261547h16334bcn8f1635fb49915cd2@mail.gmail.com> <4B6287B1.6000305@garzik.org> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=OkmfwruSSK2BrKYs2sqRqfgEsgpVKOZ5fzpdpBDcUcc=; b=KksCvVY2Eka8uR6/8ypLLuBGExPx/X14kimUIE9hXJf2e+BLJWfy6ZXAjofltmkl7C vqnJ4G1PQ2T9wEBj7vOiAZYTc7lvVD5CflFfbWDL+2aPnIN9KBNkBa5LIX4lH6JyCgnj mUFMI58j5fvJ464YflcLqJqRmP8s8cHrFaBp8= In-Reply-To: <4B6287B1.6000305@garzik.org> Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: Jeff Garzik Cc: Project Hail List , Pete Zaitcev That seems reasonable. All of those functions could be looked at as "co= mmon." The intention was to group together a bunch of functions that were useful for packet formatting. Although the bulk of the formatting is done by XDR, there are some things that XDR doesn't do, like generating and checking SHA sums. cld_dump_buf and cld_pkt_hdr_to_str are purely for debugging purposes, but they seemed like something that would be generally useful for developers making packet format changes. I know that they were useful to me. Colin On Thu, Jan 28, 2010 at 11:01 PM, Jeff Garzik wrote: > Oh, FYI, I am also folding cld_fmt.h into cld_common.h. =A0One less h= eader, > and the contents of cld_fmt.h did not really seem to align perfectly = with > the implied mnemonic "cld format" IMO. > > =A0 =A0 =A0 =A0Jeff > > > > >