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
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
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
>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
>
>
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
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
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
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
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).
9 matches
Mail list logo