1 /** 2 * \file 3 */ 4 5 #ifndef __MONO_ROUTE_H__ 6 #define __MONO_ROUTE_H__ 7 8 #if defined(HOST_DARWIN) || defined(HOST_BSD) 9 10 #include <sys/socket.h> 11 12 #if defined (HOST_IOS) || defined (HOST_WATCHOS) || defined (HOST_APPLETVOS) 13 // The iOS SDK does not provide the net/route.h header but using the Darwin version works fine. 14 #include "../../support/ios/net/route.h" 15 #else 16 #include <net/route.h> 17 #endif 18 19 #include <mono/metadata/object-internals.h> 20 21 in_addr_t gateway_from_rtm (struct rt_msghdr *rtm); 22 23 /* Category icalls */ 24 extern MonoBoolean ves_icall_System_Net_NetworkInformation_MacOsIPInterfaceProperties_ParseRouteInfo_internal (MonoString *iface, MonoArray **gw_addr_list); 25 26 #endif /* #if defined(HOST_DARWIN) || defined(HOST_BSD) */ 27 #endif /* __MONO_ROUTE_H__ */ 28