Re: mbuf from scratch
Re: mbuf from scratch
- Subject: Re: mbuf from scratch
- From: "Justin C. Walker" <email@hidden>
- Date: Tue, 28 Jun 2005 15:31:57 -0700
On Jun 28, 2005, at 15:07 , Josh Graessley wrote:
On Jun 28, 2005, at 2:37 PM, Justin C. Walker wrote:
[snip]
As Justin noted, the rcvif is ignored for the outbound path, hence
the name receive if. This will usually be NULL on the outbound
path. If you go to inject a packet inbound, you will need to set
the rcvif to something as well as fiddle with the packet to get it
in the right state.
Thanks, Josh. I had this concern in the back of my head that rcvif
might be used on the outbound path for something other than the
"interface the packet was received on" (something in ipsec code maybe).
In any case, you (Carl) should preserve the value you find in the
mbuf that you are going to copy, just to be on the safe side. I
don't think that there is a timing problem lurking in there, but
reviewing the kernel code in this area can't hurt.
Cheers,
Justin
--
Justin C. Walker, Curmudgeon-at-Large
/~\ The ASCII
\ / Ribbon Campaign
X Help Cure HTML Email
/ \
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden