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
Using ipf_inject_input with Local Packets
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Using ipf_inject_input with Local Packets
Subject
:
Using ipf_inject_input with Local Packets
From: Raj Doshi <
email@hidden
>
Date: Mon, 20 Jun 2005 02:16:53 -0400
Hello,
I would first like to thank Vincent Lubet for his help with my previous question on this list. Now, I have another question:
I'm intercepting incoming packets in my kext with KPI IP filters (Mac OS X 10.4.1), sending them to a user-space process, getting them back (possibly modified) from the user-space process, and re-injecting them with ipf_inject_input. I've got this working fine in most cases, like when accessing remote web sites. However, http connections to 127.0.0.1:80 fail and result in messages like "NetInfo connection failed for server 127.0.0.1/local" in console.log. To attempt to isolate the problem, I've tried the following:
1. Immediately re-injecting the mbuf that I receive from the filter. In this case, the local connection works.
2. Immediately re-injecting a copy (using mbuf_dup) of the mbuf that I receive from the filter. In this case, the local connection fails.
I am wondering what I can do so that these local connections will still work when I inject a copy of the original mbuf. If there is no good solution to this, then I am wondering exactly for which packets I need to avoid making copies of the mbuf.
Thanks,
Raj Doshi _______________________________________________
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
Follow-Ups
:
Re: Using ipf_inject_input with Local Packets
From:
Josh Graessley <email@hidden>
Prev by Date:
Re: getattrlist needed for Darwin 8?
Next by Date:
Re: vm / physmem info
Previous by thread:
Re: what happened to rtredirect()?
Next by thread:
Re: Using ipf_inject_input with Local Packets
Index(es):
Date
Thread