[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git] / mono / metadata / mono-route.h
blob514b080ad4f303de143abd2e9c6de144cc1c8cb0
1 /**
2 * \file
3 */
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"
17 #else
18 #include <net/route.h>
19 #endif
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>
28 /* Category icalls */
29 ICALL_EXPORT
30 MonoBoolean ves_icall_System_Net_NetworkInformation_MacOsIPInterfaceProperties_ParseRouteInfo_internal (MonoString *iface, MonoArray **gw_addr_list);
32 #endif /* __MONO_ROUTE_H__ */