Failing to attach a filter to a UTUN interface, as of 10.9...
Failing to attach a filter to a UTUN interface, as of 10.9...
- Subject: Failing to attach a filter to a UTUN interface, as of 10.9...
- From: Misha Pak <email@hidden>
- Date: Mon, 06 Oct 2014 14:07:03 +0300
Guys
We have a packet filter driver that listens to all interfaces and does stuff with packets.
This should also work with UTUN interfaces. So this is how we did it (fairly straightforward):
First, we used mbuf_tag_id_find to locate the family for UTUN_CONTROL_NAME (which is defined to be "com.apple.net.utun_control") and then we use ifnet_list_get() with this family to populate the interfaces array and subsequently call iflt_attach...
Before 10.9.x everything worked perfectly well for all interfaces.
As of 10.9, the ifnet_list_get() function consistently fails for UTUN interface (but works for everything else).
I tried diffing the kernel sources, but i can't find a trivial change that would explain this behavior.
Any ideas?
Thanks a lot,
Misha.
_______________________________________________
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