On OS X, get the interface type from the System Configuration framework.