Re: retrive data from mbuf chain

2008-02-15 Thread Biks N
Please ignore my previous post. I was having problem because I didn't allocate memory to my_data_copy. Also, the correct usage is: m_copydata( m, 0, m->m_pkthdr.len , (caddr_t) my_data_copy); thanks On Tue, Feb 12, 2008 at 12:05 PM, Biks N <[EMAIL PROTECTED]> wrote: > Hi, thanks to everyone

Re: retrive data from mbuf chain

2008-02-12 Thread Biks N
Hi, thanks to everyone for providing me with different ideas. First I am trying to use m_copydata() method because I think it will be easy for me to copy data back and forth (using m_copydataback() ). But right now I am having problem using m_copydata() function. I want to copy data in all mbufs

Re: retrive data from mbuf chain

2008-02-08 Thread Robert Watson
On Thu, 7 Feb 2008, Biks N wrote: 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 mufs which are chained together through m_next pointer. Now, I need to retrive all data in mbu

RE: retrive data from mbuf chain

2008-02-07 Thread Singh, Vijay
>From the entire chain. best regards, Vijay > -Original Message- > From: Biks N [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 07, 2008 1:38 PM > To: Sam Leffler > Cc: freebsd-hackers@freebsd.org > Subject: Re: retrive data from mbuf chain > >

Re: retrive data from mbuf chain

2008-02-07 Thread Biks N
On Feb 7, 2008 3:26 PM, Sam Leffler <[EMAIL PROTECTED]> 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 mufs > > which are chai

Re: retrive data from mbuf chain

2008-02-07 Thread Julian Elischer
Vlad GALU wrote: On 2/7/08, Biks N <[EMAIL PROTECTED]> 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 mufs which are chained together through m_next pointer. Now, I

Re: retrive data from mbuf chain

2008-02-07 Thread Sam Leffler
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 mufs which are chained together through m_next pointer. Now, I need to retrive all data in mbuf chain ( mbufs li

Re: retrive data from mbuf chain

2008-02-07 Thread Vlad GALU
On 2/7/08, Biks N <[EMAIL PROTECTED]> 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 mufs > which are chained together through m_next pointer. > > Now, I need

retrive data from mbuf chain

2008-02-07 Thread Biks N
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 mufs which are chained together through m_next pointer. Now, I need to retrive all data in mbuf chain ( mbufs linked by m_next).