site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Andrew Gallatin