API to unbind PF_INET from an interface
API to unbind PF_INET from an interface
- Subject: API to unbind PF_INET from an interface
- From: Peter Gibson <email@hidden>
- Date: Thu, 17 Apr 2014 17:40:00 -0700
- Importance: Normal
- Organization: Seabright Consulting
Hi!
I'm porting our company's L2 bridge
implementation from Windows to Mac 0S 10.8 and newer. In our bridge
implementation, we "unbind" the member interfaces from the TCP/IP stack so that
only a virtual bridge interface has an IPv4 address. We can do this through the
InetCfg API's INetCfgComponentBindings::UnbindFrom method on Windows.
Unfortunately, I haven't been able to find an
API or method to do the same on OS X. Is there a way to programmatically
"unbind" a network interface from the INET protocol family? Also, is there a way
to do this either from user-mode or through an NKE KEXT?
Also, WRT NKE, I am porting our company’s Windows bridge driver to a Mac OS
NKE. This driver will handle the I/O path from user mode and the fridged network
interfaces. One question I have is do I need to call ifnet_attach_protocol() and
attach the PF_BRIDGE to each bridge member (including the virtual adapter)?
Typical (for me) to ask such a dumb question, but why is this needed?
Thanks!
|
_______________________________________________
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