• 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
mbuf data access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mbuf data access


  • Subject: mbuf data access
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 5 Jun 2006 16:39:07 +0200

Hi all,

I'm writing some NKE UDP filter with packet mangling + packet re- injection,
when i have a mbuf (in chain) with flags set to MBUF_PKTHDR i've got an
access to data using MTOD(tMbuf, caddr_t), at this point every things works
fine but when the mbuf in the chain is marked as MBUF_EXT nothing work at all.


- How can have access to packet data ?

- mbuf_len() on a mbuf (marked as MBUF_EXT) in a mbuf chain
is a valid length ?

- when modifying such packets do i need to compute some checksums ?


Any tips, clarifications,..., will be appreciate.



* My MTOD macro is:
#define MTOD(m, t)      ((t)(mbuf_data(m)))

Jean-Yves Cases
email@hidden

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


  • Prev by Date: Re: What exactly does DKIOCCDREAD return for kCDSectorAreaSubChannelQ?
  • Next by Date: launchd's job jettison logic (Was: Re: StartupItems)
  • Previous by thread: Mailing list etiquette [was Re: Re2: GNU-Darwin: missing code in Darwin2]
  • Next by thread: Re: mbuf data access
  • Index(es):
    • Date
    • Thread