Add mono/metadata/mono-route.c for non-Linux ParseRouteInfo_local
authorBen Woods <woodsb02@gmail.com>
Sat, 15 Nov 2014 17:24:09 +0000 (01:24 +0800)
committerBen Woods <woodsb02@gmail.com>
Sun, 18 Jan 2015 23:05:32 +0000 (07:05 +0800)
commit1e0c63e953454b49676ddafb695e475beba24dc1
tree84b5c0702fad40961fa41e7c211f426b29475ba9
parent4f237e0ce106218265a40e600a6c65f6a9143fb9
Add mono/metadata/mono-route.c for non-Linux ParseRouteInfo_local

Add #ifdef to ignore code in mono/metadata/mono-route.c if OS=linux
Also remove mono-route.c from msvc/libmonoruntime.vcxproj (Windows)

Add #ifdef to ensure mono/metadata/mono-route.h code is not included
on Linux

Change to using #if defined(PLATFORM_MACOSX) || defined(PLATFORM_BSD)

Use sizeof(addr) for maximum length of IP address string, instead of the hard-coded 16.
Should the size of addr ever change it will keep us from disaster in case if shrinking the array length.
Also, do not ignore snprintf return value - check for truncated output and act accordingly if it happens.

Add Tests for System.Net.NetworkInformation/IPInterfacePropertiesTest.cs and System.Net.NetworkInformation/NetworkInterfaceTest.cs

Remove accidental Copyright

add a space before the opening parenthesis, as shown in the coding guidelines.

Indent TestFixture to align with coding style of newer Test classes

Use G_N_ELEMENTS(mib) instead of sizeof(mib) / sizeof(mib[0])
mcs/class/System/System.Net.NetworkInformation/GatewayIPAddressInformationCollection.cs
mcs/class/System/System.Net.NetworkInformation/IPInterfaceProperties.cs
mcs/class/System/System_test.dll.sources
mcs/class/System/Test/System.Net.NetworkInformation/IPInterfacePropertiesTest.cs [new file with mode: 0644]
mcs/class/System/Test/System.Net.NetworkInformation/NetworkInterfaceTest.cs [new file with mode: 0644]
mono/metadata/Makefile.am
mono/metadata/icall-def.h
mono/metadata/icall.c
mono/metadata/mono-route.c [new file with mode: 0644]
mono/metadata/mono-route.h [new file with mode: 0644]