| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
Can someone show me or point me to a ‘simple’ example
of how to create a struct mbuf for injecting into the stack to send a packet
in/out the kernel? I have a kernel level driver and I want to pass an mbuf
in/out my driver using dlil_inject_if _.... Say I want to the source to be
00:0a: I have tried several methods of creating the mbuf but when I
use dlil_if_inject_output I get an error = 22. But if I do an m_copyback of an
mbuf I copied coming in I can make dlil_if_inject_output work, but not with the
240 bytes I want. Instead of going into a lot of explanation of what I am doing
and why I basically just need to know how to create a ‘new’ mbuf
with the data as described above for sending out/in the driver. Thanks to all
Visit the Apple Store online or at retail locations. Contact Apple | Terms of Use | Privacy Policy Copyright © 2007 Apple Inc. All rights reserved. |