Commit Graph
4 Commits
Author SHA1 Message Date
Marek Habersack 303e42b130 Implement the Mono side of Android support for NetworkInterface.GetAllNetworkInterfaces ()
Added code to call Xamarin.Android internal implementation of getifaddrs/freeifaddrs to provide us
with the required information to fulfill the request.

Added a handful of Linux ARP hardware IDs which are considered to be tunnel devices and which may occur
on Android devices.

Part of fix for https://bugzilla.xamarin.com/show_bug.cgi?id=1969
2014-07-30 18:22:33 -04:00
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Zoltan Varga 31bf33fc66 2009-09-24 Zoltan Varga <[email protected]>
* LinuxNetworkInterfaceMarshal.cs: Add StructLayout attribute to structures, so
	the aot compiler can generate PtrToStructure wrappers for them.

svn path=/trunk/mcs/; revision=142578
2009-09-24 14:34:43 +00:00
Marek Habersack 8d78815a10 2008-07-14 Marek Habersack <[email protected]>
* NetworkInterface.cs: implemented support for Linux. Parts
	contributed by Eric Butler ([email protected]), thanks!

	* GatewayIPAddressInformationCollection.cs,
	IPInterfaceProperties.cs, IPAddressInformationCollection.cs: added
	support for Linux. Patch contributed by Eric Butler
	([email protected]), thanks!

	* IPv4InterfaceProperties.cs: implemented support for Linux.

	* LinuxNetworkInterfaceMarshal.cs: added. Contains a set of
	Linux-specific structures required for accessing the network
	information. Patch contributed by Eric Butler
	([email protected]), thanks!

	* MulticastIPAddressInformation.cs: added support for Linux
	multicast information. Patch contributed by Eric Butler
	([email protected]), thanks!

	* IPv4InterfaceStatistics.cs: use the parent IfacePath to get the
	path to the interface description file.

	* UnicastIPAddressInformation.cs: added stubs for
	LinuxUnicastIPAddressInformation. Patch contributed by Eric Butler
	([email protected]), thanks!

	* Ping.cs: Use /bin/ping when running as non-root user
	(implementation by Jackson Harper <[email protected]>) or use
	raw sockets if running as root or if the current process has the
	CAP_NET_RAW Linux capability set while running as an unprivileged
	user.


svn path=/trunk/mcs/; revision=107890
2008-07-14 15:37:21 +00:00