• 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
Re: NKEs on Intel-based Macs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NKEs on Intel-based Macs


  • Subject: Re: NKEs on Intel-based Macs
  • From: David A Rowland <email@hidden>
  • Date: Fri, 25 Aug 2006 11:27:07 -0700

Title: Re: NKEs on Intel-based Macs

I realize this stuff is pretty obscure, but not fixing it creates bugs
that other developers end up stumbling over the hard way.

For my project, it seems to reduce to this. Outbound packets have been either bypassed, rejected or processed. If bypassed the return value is 0, and they simply move on as if nothing had happened. If rejected they are dumped immediately. If processed the packet has been finalized, and this line:

 mbuf_clear_csum_requested(mbufPtr); // mbuf->m_pkthdr.csum_data = 0;

prevents the downstream software and hardware from altering it.

I don't call mbuf_outbound_finalize and don't get caught in the host/network byte ordering problem.

For inbound packets there was no problem that I could see, but on Peter's recommendation I inserted:

 mbuf_inbound_modified(mbufPtr);                // mbuf->m_pkthdr.csum_flags = 0;
 mbuf_clear_csum_requested(mbufPtr);    // mbuf->m_pkthdr.csum_data = 0;
and that causes no harm, at least.



David
 _______________________________________________
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

References: 
 >NKEs on Intel-based Macs (From: "Peter Lovell" <email@hidden>)
 >Re: NKEs on Intel-based Macs (From: Josh Graessley <email@hidden>)
 >Re: NKEs on Intel-based Macs (From: David A Rowland <email@hidden>)
 >Re: NKEs on Intel-based Macs (From: David A Rowland <email@hidden>)
 >Re: NKEs on Intel-based Macs (From: Josh Graessley <email@hidden>)
 >Re: NKEs on Intel-based Macs (From: "Peter Sichel" <email@hidden>)
 >Re: NKEs on Intel-based Macs (From: David A Rowland <email@hidden>)
 >Re: NKEs on Intel-based Macs (From: "Peter Sichel" <email@hidden>)
 >Re: NKEs on Intel-based Macs (From: David A Rowland <email@hidden>)
 >Re: NKEs on Intel-based Macs (From: David A Rowland <email@hidden>)
 >Re: NKEs on Intel-based Macs (From: Josh Graessley <email@hidden>)
 >Re: NKEs on Intel-based Macs (From: "Peter Sichel" <email@hidden>)

  • Prev by Date: Re: icmp traceroute
  • Next by Date: Re: icmp traceroute
  • Previous by thread: Re: NKEs on Intel-based Macs
  • Next by thread: Detecting if Admin user
  • Index(es):
    • Date
    • Thread