From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 7 22:10:43 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 557E916A417 for ; Thu, 7 Feb 2008 22:10:43 +0000 (UTC) (envelope-from Vijay.Singh@netapp.com) Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by mx1.freebsd.org (Postfix) with ESMTP id 1576513C457 for ; Thu, 7 Feb 2008 22:10:42 +0000 (UTC) (envelope-from Vijay.Singh@netapp.com) X-IronPort-AV: E=Sophos;i="4.25,317,1199692800"; d="scan'208";a="149881264" Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 07 Feb 2008 13:41:16 -0800 Received: from svlexrs01.hq.netapp.com (svlexrs01.corp.netapp.com [10.57.156.158]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id m17LfG58004586; Thu, 7 Feb 2008 13:41:16 -0800 (PST) Received: from exsvlrb01.hq.netapp.com ([10.56.8.62]) by svlexrs01.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 7 Feb 2008 13:41:16 -0800 Received: from exsvl03.hq.netapp.com ([10.56.8.64]) by exsvlrb01.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 7 Feb 2008 13:41:15 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 7 Feb 2008 13:41:14 -0800 Message-ID: <8B3BF7A02B910640AB146A919AB36594054A71E1@exsvl03.hq.netapp.com> In-Reply-To: <50cd4e5f0802071338h63b4fcbax9ceb9643aa5d7504@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: retrive data from mbuf chain Thread-Index: Achp0cqk8PYntFTFRfm031xNtQ9O1QAAFtpQ References: <50cd4e5f0802071222w1222d901o3ce8770b5f5725b4@mail.gmail.com><47AB7775.2040000@errno.com> <50cd4e5f0802071338h63b4fcbax9ceb9643aa5d7504@mail.gmail.com> From: "Singh, Vijay" To: "Biks N" , "Sam Leffler" X-OriginalArrivalTime: 07 Feb 2008 21:41:15.0139 (UTC) FILETIME=[2A284530:01C869D2] X-Mailman-Approved-At: Thu, 07 Feb 2008 22:25:02 +0000 Cc: freebsd-hackers@freebsd.org Subject: RE: retrive data from mbuf chain X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2008 22:10:43 -0000 >From the entire chain. best regards, Vijay =20 > -----Original Message----- > From: Biks N [mailto:freebsd.dev@gmail.com]=20 > Sent: Thursday, February 07, 2008 1:38 PM > To: Sam Leffler > Cc: freebsd-hackers@freebsd.org > Subject: Re: retrive data from mbuf chain >=20 > On Feb 7, 2008 3:26 PM, Sam Leffler wrote: > > > > Biks N wrote: > > > Hi, > > > > > > I am new to FreeBSD kernel programming. > > > > > > Currently I am trying to work on mbuf data manupulation. > > > > > > >From my understanding: data (payload) is stored into one or more=20 > > > >mufs > > > which are chained together through m_next pointer. > > > > > > Now, I need to retrive all data in mbuf chain ( mbufs linked by=20 > > > m_next). I am working ip_output() in netinet/ip_output.c > > > > > > Does there exist inbuilt function/macro to retrive all=20 > the data in mbuf chain? > > > > > > > man 9 mbuf; look for m_copydata. >=20 >=20 > m_copydata(mbuf, offset, len, buf) >=20 > Will it copy data from entire "mbuf chain" or just from the=20 > current mbuf ? >=20 > Thanks for your help >=20 >=20 > > > > Sam > > > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list=20 > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to=20 > "freebsd-hackers-unsubscribe@freebsd.org" >=20