• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
FW: mbufs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FW: mbufs


  • Subject: FW: mbufs
  • From: "Carl Smith" <email@hidden>
  • Date: Wed, 15 Jun 2005 14:37:14 -0400
  • Thread-topic: mbufs

 

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:12:23:34:aa, the destination to be 00:0b:33:44:55:0d and the data is 240 bytes long, i.e. “abcdefghijklmnopq…..”

 

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

 

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: network security & moreunix
  • Next by Date: PPP_EVENT
  • Previous by thread: Ensuring host-name matching
  • Next by thread: PPP_EVENT
  • Index(es):
    • Date
    • Thread