From owner-freebsd-net Wed Feb 7 0:34:33 2001 Delivered-To: freebsd-net@freebsd.org Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by hub.freebsd.org (Postfix) with ESMTP id 5EA3737B401; Wed, 7 Feb 2001 00:34:12 -0800 (PST) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.8.8/8.8.8) with ESMTP id JAA24496; Wed, 7 Feb 2001 09:33:15 +0100 (MET) Date: Wed, 7 Feb 2001 09:33:15 +0100 (CET) From: Harti Brandt To: Boris Popov Cc: , Subject: Re: CFR: Sequential mbuf read/write extensions In-Reply-To: <20010206105846.Q26076@fw.wintelcom.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Looks nice, just what I needed two weeks ago and partly had to implement myself :-) But, I would recommend to stick with the ususal naming of size dependend things, by appending a numeric suffix. Something like: int mb_get8(struct mbdata *mbp, u_int8_t *x); int mb_get16(struct mbdata *mbp, u_int16_t *x); int mb_get16le(struct mbdata *mbp, u_int16_t *x); int mb_get16be(struct mbdata *mbp, u_int16_t *x); int mb_get32(struct mbdata *mbp, u_int32_t *x); ... Using 'word' and 'doubleword' is rather confusing (when speeking of words I would think of 32 bit nowadays). harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.gmd.de, harti@begemot.org, lhbrandt@mail.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message