5 #ifndef __MONO_ROUTE_H__
6 #define __MONO_ROUTE_H__
8 #if defined(HOST_DARWIN) || defined(HOST_BSD)
10 #include <sys/types.h>
11 #include <sys/socket.h>
12 #include <netinet/in.h> /* in_addr_t */
14 #if defined (HOST_IOS) || defined (HOST_WATCHOS) || defined (HOST_TVOS)
15 // The iOS SDK does not provide the net/route.h header but using the Darwin version works fine.
16 #include "../../support/ios/net/route.h"
18 #include <net/route.h>
21 in_addr_t
gateway_from_rtm (struct rt_msghdr
*rtm
);
23 #endif /* #if defined(HOST_DARWIN) || defined(HOST_BSD) */
25 #include <mono/metadata/object-internals.h>
26 #include <mono/metadata/icalls.h>
30 MonoBoolean
ves_icall_System_Net_NetworkInformation_MacOsIPInterfaceProperties_ParseRouteInfo_internal (MonoString
*iface
, MonoArray
**gw_addr_list
);
32 #endif /* __MONO_ROUTE_H__ */