From owner-freebsd-hackers Thu Dec 20 4:59:42 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from anansi.vpha.health.ufl.edu (anansi.vpha.health.ufl.edu [159.178.78.153]) by hub.freebsd.org (Postfix) with ESMTP id 1BF1437B417 for ; Thu, 20 Dec 2001 04:59:39 -0800 (PST) Received: (from dymphna@localhost) by anansi.vpha.health.ufl.edu (8.9.3/8.9.3) id HAA09879; Thu, 20 Dec 2001 07:59:28 -0500 Date: Thu, 20 Dec 2001 07:59:28 -0500 From: sridharv@ufl.edu Message-Id: <200112201259.HAA09879@anansi.vpha.health.ufl.edu> X-Authentication-Warning: anansi.vpha.health.ufl.edu: dymphna set sender to sridharv@ufl.edu using -f To: Aleksander Rozman Reply-To: sridharv@ufl.edu Cc: "'freebsd-hackers@freebsd.org'" References: <600B91D5E4B8D211A58C00902724252CF27E09@piramida.hermes.si> In-Reply-To: <600B91D5E4B8D211A58C00902724252CF27E09@piramida.hermes.si> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP3 Imap webMail Program 2.0.10 X-Originating-IP: 66.157.146.152 Subject: Re: sk_buff on FreeBSD Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG you are right. mbufs are used for buffer management in the BSD stack. sk_buff as the linux equivalent . basically they are chains with control information and data. but i think linux assuming more memory allocated a large sk_buff and hence data and headers are contiguous. I remember Alan Cox giving some explanation for why it was this way. For more info you can search in google.For info on mbuf refer rich stevens TCP/IP vol 2 Quoting Aleksander Rozman : > > Hi ! > > I have started proting some network protocols (ax.25 for ham) from linux, > and I have come acrros structure called sk_buff. I was just wondering if > someone tried to implement this on FreeBSD? It's seems that FreeBSD has > mbuf > structure which does the same thing as sk_buff on linux, but way things are > done is quite different (as is the structure). So if someone can help, I > would be very thankful... > > Andy > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > The fastest way to change is to laugh at your own folly - Who moved my cheese To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message