+2009-09-24 Zoltan Varga <vargaz@gmail.com>
+
+ * LinuxNetworkInterfaceMarshal.cs: Add StructLayout attribute to structures, so
+ the aot compiler can generate PtrToStructure wrappers for them.
+
2009-09-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
* Ping.cs: if we receive a packet that is ignored, adjust the
public IntPtr ifu_dstaddr;
}
+ [StructLayout(LayoutKind.Sequential)]
struct ifaddrs
{
public IntPtr ifa_next;
public ifa_ifu ifa_ifu;
public IntPtr ifa_data;
}
-
+
+ [StructLayout(LayoutKind.Sequential)]
struct sockaddr_in
{
public ushort sin_family;
public uint sin_addr;
}
+ [StructLayout(LayoutKind.Sequential)]
struct sockaddr_in6
{
public ushort sin6_family; /* AF_INET6 */
public uint sin6_scope_id; /* scope id (new in RFC2553) */
}
+ [StructLayout(LayoutKind.Sequential)]
struct in6_addr
{
[MarshalAs (UnmanagedType.ByValArray, SizeConst=16)]
public byte[] u6_addr8;
}
+ [StructLayout(LayoutKind.Sequential)]
struct sockaddr_ll
{
public ushort sll_family;