Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2008 13:41:14 -0800
From:      "Singh, Vijay" <Vijay.Singh@netapp.com>
To:        "Biks N" <freebsd.dev@gmail.com>, "Sam Leffler" <sam@errno.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   RE: retrive data from mbuf chain
Message-ID:  <8B3BF7A02B910640AB146A919AB36594054A71E1@exsvl03.hq.netapp.com>
In-Reply-To: <50cd4e5f0802071338h63b4fcbax9ceb9643aa5d7504@mail.gmail.com>
References:  <50cd4e5f0802071222w1222d901o3ce8770b5f5725b4@mail.gmail.com><47AB7775.2040000@errno.com> <50cd4e5f0802071338h63b4fcbax9ceb9643aa5d7504@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>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 <sam@errno.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8B3BF7A02B910640AB146A919AB36594054A71E1>