Re: NKEs on Intel-based Macs
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