Re: mbuf
Re: mbuf
- Subject: Re: mbuf
- From: Andrew Gallatin <email@hidden>
- Date: Tue, 8 May 2007 09:48:07 -0400 (EDT)
sugumaran narayanan writes:
> Hi all
> My ethernet driver for a pc card's output packet function fails, whenever i try to move data from the mbuf structure
>
> for(mn = pkt;mn;mbuf_next(mn))
> {
> //bcopy(mbuf_data(mn)), des_ptr_ub, mbuf_len(mn));
> des_ptr_ub += mbuf_len(mn);
> }
> the bcopy fails and creates a kernel panic . any reasons???
You have an infinate loop, and are writing past the end of des_ptr_ub.
(hint: you are forgetting to assign mn = mbuf_next(mn))
Drew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >mbuf (From: sugumaran narayanan <email@hidden>) |