Commit Graph
43 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier 1ae7d82d80 2010-07-05 Gonzalo Paniagua Javier <[email protected]>
* NetworkInterface.cs: avoid endless loop when a bad length is
	received for AF_PACKET. Fixes bug #601783.


svn path=/trunk/mcs/; revision=159921
2010-07-05 18:30:41 +00:00
Gonzalo Paniagua Javier 55671bd0b2 2010-06-22 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: we need to read the output to give the process time
	to start. Fixes bug #591136.


svn path=/trunk/mcs/; revision=159372
2010-06-22 20:10:26 +00:00
Marek Safar 4e0bf1356c 2010-03-25 Marek Safar <[email protected]>
* IPGlobalProperties.cs: Made Win32_IN6_ADDR verifiable.


svn path=/trunk/mcs/; revision=154208
2010-03-25 17:48:22 +00:00
Carlos Alberto Cortez aa17d4e326 2009-12-07 Carlos Alberto Cortez <[email protected]>
* Ping.cs: Try to detect the path to the bin command, since different
	Unix systems store it in different places.
	Fixes #519272.


svn path=/trunk/mcs/; revision=147831
2009-12-08 05:08:05 +00:00
Gonzalo Paniagua Javier f789ba4acf 2009-10-06 Gonzalo Paniagua Javier <[email protected]>
* GatewayIPAddressInformationCollection.cs:
	* IPInterfaceProperties.cs: implement GatewayAddresses for linux.
	Original patch by Christoph von Wittich.
	Fixes bug #544640.


svn path=/trunk/mcs/; revision=143525
2009-10-06 16:25:54 +00:00
Gonzalo Paniagua Javier 00c833429f 2009-09-29 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: fix the check for a time-out return value from 'ping'.


svn path=/trunk/mcs/; revision=142820
2009-09-29 05:57:15 +00: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
Gonzalo Paniagua Javier 454ccc913a 2009-09-19 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: if we receive a packet that is ignored, adjust the
	timeout. Fixes bug #538013.


svn path=/trunk/mcs/; revision=142250
2009-09-19 04:44:28 +00:00
Miguel de Icaza 9f53a9fd85 2009-05-16 Miguel de Icaza <[email protected]>
* Apply patch from Alex Shulgin
	<[email protected]> to support OSX in
	NetworkInformation classes.

svn path=/trunk/mcs/; revision=134277
2009-05-16 18:03:09 +00:00
Gonzalo Paniagua Javier 12f4ef3894 2009-05-03 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: we just need the address(es), not a host entry. This avoids
	querying the DNS server(s) when the target is an IP address.


svn path=/trunk/mcs/; revision=133459
2009-05-04 03:14:29 +00:00
Gonzalo Paniagua Javier db1184228b 2009-03-24 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: MacOS has different arguments for ping.
	Bug #486904 fixed.


svn path=/trunk/mcs/; revision=130154
2009-03-24 21:00:01 +00:00
Gonzalo Paniagua Javier dfb688280d 2009-01-26 Christian Prochnow <[email protected]>
* Ping.cs: ignore ICMP echo request packet in case we ping
	  localhost.

svn path=/trunk/mcs/; revision=124624
2009-01-27 03:51:13 +00:00
Atsushi Eno a87bb8333d 2009-01-11 Atsushi Enomoto <[email protected]>
* NetworkInformationPermission.cs,
	  NetworkInformationPermissionAttribute.cs : implement some,
	  otherwise it blocks compilation.


svn path=/trunk/mcs/; revision=122998
2009-01-11 19:05:41 +00:00
Gonzalo Paniagua Javier cd744f7acb 2008-12-20 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: use the new internal method in Socket to avoid having to
	throw exceptions when there's a timeout.


svn path=/trunk/mcs/; revision=121924
2008-12-20 10:53:59 +00:00
Gonzalo Paniagua Javier 28771e5482 2008-12-11 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: close the socket in SendPrivileged. Use Buffer.BlockCopy
	instead of Array.Copy. Return IPStatus.Unknown instead of throwing an
	exception for unknown status codes received.


svn path=/trunk/mcs/; revision=121278
2008-12-11 08:46:45 +00:00
Miguel de Icaza 54616d8862 2008-11-25 Atsushi Enomoto <[email protected]>
* Makefile : update old nunit options that break upgrade to 2.4.

2008-11-03 Gonzalo Paniagua Javier <[email protected]>

svn path=/trunk/mcs/; revision=120282
2008-11-29 20:25:30 +00:00
Gonzalo Paniagua Javier b3db36863a 2008-11-20 Gonzalo Paniagua Javier <[email protected]>
* Ping.cs: the time for the arguments of 'ping' is in seconds. Don't
	read the output of running the command, since we trust the return
	code.


svn path=/trunk/mcs/; revision=119534
2008-11-20 23:15:54 +00:00
Atsushi Eno 801ecd1e6e 2008-10-27 Atsushi Enomoto <[email protected]>
* Ping.cs : use privileged mode for non-unix. On Windows there is
	  no /usr/bin/ping.


svn path=/trunk/mcs/; revision=117210
2008-10-27 21:51:30 +00:00
Gonzalo Paniagua Javier 0ab75f9991 2008-10-04 Gonzalo Paniagua Javier <[email protected]>
* NetworkInterface.cs: detect wireless 802.11 on linux.


svn path=/trunk/mcs/; revision=114857
2008-10-05 02:01:08 +00:00
Gonzalo Paniagua Javier 7de20eb8b6 2008-09-28 Gonzalo Paniagua Javier <[email protected]>
* NetworkInterface.cs: special case for loopback interfaces so that
	their a physical interface address is PhysicalInterfaceAddress.None.
	Fixes bug #422118.


svn path=/trunk/mcs/; revision=114343
2008-09-28 23:20:11 +00:00
Atsushi Eno 20bec9f2c1 2008-08-15 Atsushi Enomoto <[email protected]>
* IPInterfaceProperties.cs, UnicastIPAddressInformation.cs,
	  UnicastIPAddressInformationCollection.cs : fixed bug #416526, based
	  on the patch by Fredrik Kling. support UnicastIPAddressInformation
	  on win32.


svn path=/trunk/mcs/; revision=110557
2008-08-15 07:29:37 +00:00
Atsushi Eno 4ad5bebb46 2008-08-06 Atsushi Enomoto <[email protected]>
* IPGlobalProperties.cs : fixed ToEndPoint() to not bork at 
          parsing IPv6 string. Fixed bug #410006.


svn path=/trunk/mcs/; revision=109745
2008-08-06 10:20:58 +00:00
Jb Evain e0e4361e63 cleanup System.ComponentModel for SL2
svn path=/trunk/mcs/; revision=109344
2008-07-31 13:49:49 +00:00
Marek Habersack e29f735e4f 2008-07-17 Marek Habersack <[email protected]>
* IPInterfaceProperties.cs: implemented UnicastAddresses

svn path=/trunk/mcs/; revision=108179
2008-07-17 21:34:52 +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
Marek Habersack a271f8ae6b 2008-07-14 Marek Habersack <[email protected]>
* 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=107871
2008-07-14 10:16:46 +00:00
Miguel de Icaza bd9e32f5d7 Commit
svn path=/trunk/mcs/; revision=97901
2008-03-10 20:11:46 +00:00
Miguel de Icaza a365c3318d 2008-02-18 Miguel de Icaza <[email protected]>
* IPv4InterfaceStatistics.cs: Implemented Linux support.

	* NetworkInterface.cs: Implemented Linux support.

	TODO: still missing GetIPProperties.

svn path=/trunk/mcs/; revision=96155
2008-02-19 15:24:19 +00:00
Atsushi Eno 237d28ef60 2007-10-23 Atsushi Enomoto <[email protected]>
* Ping.cs : Do not call OnPingCompleted() at CancelAsync() it should
	  be called at RunWorkerCompleted. Simplified RunWorkerCompleted.


svn path=/trunk/mcs/; revision=87971
2007-10-23 10:06:35 +00:00
Miguel de Icaza c54dd89a05 2007-09-29 Miguel de Icaza <[email protected]>
* NetworkInterface.cs (GetAllNetworkInterfaces): return an empty
	array instead of throwing an exception on operating systems where

svn path=/trunk/mcs/; revision=86646
2007-09-29 19:59:03 +00:00
Atsushi Eno 8a17700a34 2007-09-07 Atsushi Enomoto <[email protected]>
* IPGlobalProperties.cs : implemented properties on linux.


svn path=/trunk/mcs/; revision=85463
2007-09-07 05:03:07 +00:00
Atsushi Eno 4fd30c9f26 2007-09-06 Atsushi Enomoto <[email protected]>
* Ping.cs, PingReply.cs, PingCompletedEventArgs.cs : implemented
	  in managed code.


svn path=/trunk/mcs/; revision=85416
2007-09-06 13:56:47 +00:00
Atsushi Eno 69fc63dda1 2007-09-03 Atsushi Enomoto <[email protected]>
* IPGlobalStatistics.cs : Mib-* class is nonpublic.
	* Win32NetworkInterfaceMarshal.cs IPv4InterfaceProperties.cs
	  IPGlobalProperties.cs IPInterfaceProperties.cs
	  NetworkInterface.cs : move Win32NetworkInterfaceMarshal.FixedInfo to
	  Win32_FIXED_INFO.Instance and share it with Win32IPGlobalProperties.
	  Fixed GetUdp[6]Table() / GetTcp[6]Table() marshalling issue.


svn path=/trunk/mcs/; revision=85207
2007-09-03 08:29:38 +00:00
Atsushi Eno 7fb299fbbe 2007-08-29 Atsushi Enomoto <[email protected]>
* System.dll.sources : added Win32NetworkInterfaceMarshal.cs.

	* NetworkInterface.cs,
	  IPv4InterfaceStatistics.cs
	  IPInterfaceProperties.cs
	  IPv4InterfaceProperties.cs
	  IPv6InterfaceProperties.cs
	  IPAddressCollection.cs
	  GatewayIPAddressInformation.cs
	  GatewayIPAddressInformationCollection.cs
	  IPAddressInformation.cs
	  IPAddressInformationCollection.cs
	  MulticastIPAddressInformation.cs
	  MulticastIPAddressInformationCollection.cs
	  UnicastIPAddressInformation.cs
	  UnicastIPAddressInformationCollection.cs
	  Win32NetworkInterfaceMarshal.cs (new) :
	  NetworkInterface implementation using Win32 API.

	  Not sure how MIB-based implementation (for Linux) is possible but
	  it will follow.


svn path=/trunk/mcs/; revision=85018
2007-08-29 18:05:59 +00:00
Atsushi Eno 2297c7d59e 2007-08-27 Atsushi Enomoto <[email protected]>
* IPGlobalProperties.cs : implemented remaining methods in
          MibIPGlobalProperties. Support /usr/compat/linux/proc
          for some BSD environment.


svn path=/trunk/mcs/; revision=84896
2007-08-27 17:38:26 +00:00
Atsushi Eno 61a1e03e30 2007-08-27 Atsushi Enomoto <[email protected]>
* IPGlobalProperties.cs, TcpStatistics.cs,
          IPGlobalStatistics.cs, IcmpV4Statistics.cs,
          IcmpV6Statistics.cs, UdpStatistics.cs :
          and here is non-Windows version, based on /proc/net/snmp(6).


svn path=/trunk/mcs/; revision=84875
2007-08-27 13:19:41 +00:00
Atsushi Eno 0abac5d232 2007-08-27 Atsushi Enomoto <[email protected]>
* IPGlobalProperties.cs, TcpConnectionInformation.cs,
	  TcpStatistics.cs, IPGlobalStatistics.cs, IcmpV4Statistics.cs,
	  IcmpV6Statistics.cs, UdpStatistics.cs :
	  initial implementation of IPGlobalProperties and its children
	  for Win32 API, mostly done. Non-Windows implementation should
	  follow.


svn path=/trunk/mcs/; revision=84864
2007-08-27 04:42:29 +00:00
Alan McGovern 90bb8581a9 Added patch for #82403 fixing several issues with PhysicalAddress
svn path=/trunk/mcs/; revision=84018
2007-08-13 22:45:19 +00:00
Andrew Skiba f43e959572 revert unnecessary TARGET_JVM commit
svn path=/trunk/mcs/; revision=66183
2006-10-03 12:44:11 +00:00
Andrew Skiba 95ae5d78d3 TARGET_JVM
svn path=/trunk/mcs/; revision=66029
2006-09-28 13:41:05 +00:00
Miguel de Icaza a5bd130af9 2006-03-11 Miguel de Icaza <[email protected]>
* Uri.cs: Pragma disable warning 612 (Obsolete methods are being
	used by us internally).

	Ponder: should we instead move our methods to use new versions of
	the Obsoleted ones?

2006-03-11  Miguel de Icaza  <[email protected]>

	* CodeNamespaceImportCollection.cs: It turns out that a lot of the
	errors flagged with "!" were just missing explicit interface
	implementations.  

	Implement.

2006-03-11  Miguel de Icaza  <[email protected]>

	* CodeDomConfigurationHandler.cs: Comment out unused methods. 

	* TempFileCollection.cs: Implement explicitly some interface
	methods to get rid of the "!" errors on CorCompare.

2006-03-11  Miguel de Icaza  <[email protected]>

	* Queue.cs: Flag as serializable.

	* LinkedList.cs (OnDeserialization): Fix signature. 

	* SortedList.cs: Implement explicitly a few methods that were
	flagged by corcompare. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* IOrderedDictionary.cs: Flag GetEnumerator as a "new" method to
	avoid warning.

2006-03-11  Miguel de Icaza  <[email protected]>

	* ConfigurationSettings.cs (ChangeConfigurationSettings): Make
	internal to avoid warnings.  This routine is called from
	System.Web with MethodInfo.Invoke.

2006-03-11  Miguel de Icaza  <[email protected]>

	* DeflateStream.cs: Comment out DllImport that was not being
	used. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* y

	* SerialPort.cs: Remove unused variable (writeBuffer). 

	* SerialPortStream.cs (Dispose): override, not new.

2006-03-11  Miguel de Icaza  <[email protected]>

	* WebClient.cs: Only expose the right methods to avoid warnings. 

	* FtpDataStream.cs (Dispose): Fix signature.

	* FtpWebResponse.cs: Comment out keepAlive field (unused, sounds
	like we are missing features here).

	* IPAddress.cs: Move m_HashCode property to the end, and set
	pragmas to disable warnings.

2006-03-11  Miguel de Icaza  <[email protected]>

	* MailAddress.cs: Comment out unused field to remove warning. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* NetworkChange.cs: Use pragmas to eliminate warnings from events
	that we do not trigger yet.

	This is a candidate for using Aaron's NetworkManager code.  But
	would make us depend on d-bus.

	* NetworkInformationException.cs: Use error_code for ErrorCode,
	instead of NativeErrorCode.   Fixes warning. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* AuthenticatedStream.cs: Fixed normative parameter names (yes, we
	need to do this everywhere one day).

	(Close): actually obey the "leaveInnerStreamOpen" setting from the
	constructor. 

2006-03-11  Miguel de Icaza  <[email protected]>

	* NetworkStream.cs (Dispose): Use the right signature depending on
	the profile being built.

2006-03-11  Miguel de Icaza  <[email protected]>

	* X509Chain.cs: Flagged member as internal to avoid unused warning.

	* X500DistinguishedName.cs: Comment out unused names and move
	temporary unused variables inside the comments that were removed 



svn path=/trunk/mcs/; revision=57836
2006-03-11 19:07:56 +00:00
Gonzalo Paniagua Javier 601398134b 2006-02-24 Gonzalo Paniagua Javier <[email protected]>
* UnicastIPAddressInformation.cs:
	* PingException.cs:
	* TcpConnectionInformation.cs:
	* IPv4InterfaceStatistics.cs:
	* NetworkInformationException.cs:
	* IPAddressInformation.cs:
	* MulticastIPAddressInformationCollection.cs:
	* TcpStatistics.cs:
	* IPGlobalStatistics.cs:
	* NetworkInformationPermission.cs:
	* MulticastIPAddressInformation.cs:
	* IcmpV4Statistics.cs:
	* IcmpV6Statistics.cs:
	* IPv4InterfaceProperties.cs:
	* PhysicalAddress.cs:
	* IPv6InterfaceProperties.cs:
	* GatewayIPAddressInformationCollection.cs:
	* ChangeLog: Modified file.
	* UnicastIPAddressInformationCollection.cs:
	* IPAddressCollection.cs:
	* NetworkInformationPermissionAttribute.cs:
	* Ping.cs:
	* NetworkChange.cs:
	* IPAddressInformationCollection.cs:
	* UdpStatistics.cs:
	* GatewayIPAddressInformation.cs:
	* IPGlobalProperties.cs:
	* IPInterfaceProperties.cs:
	* NetworkInterface.cs: implemented or stubbed out.


svn path=/trunk/mcs/; revision=57264
2006-02-24 22:47:15 +00:00
Gonzalo Paniagua Javier b1b8143bc0 2006-02-22 Gonzalo Paniagua Javier <[email protected]>
* NetBiosNodeType.cs:
	* IPStatus.cs:
	* NetworkInterfaceType.cs:
	* SuffixOrigin.cs:
	* DuplicateAddressDetectionState.cs:
	* NetworkInformationAccess.cs:
	* OperationalStatus.cs:
	* TcpState.cs:
	* PingCompletedEventHandler.cs:
	* NetworkInterfaceComponent.cs:
	* NetworkAvailabilityChangedEventHandler.cs:
	* NetworkAvailabilityEventArgs.cs:
	* PrefixOrigin.cs:
	* NetworkAddressChangedEventHandler.cs:
	* PingCompletedEventArgs.cs:
	* PingOptions.cs:
	* PingReply.cs: all enums, all event handlers/args + 2 classes.


svn path=/trunk/mcs/; revision=57182
2006-02-22 23:27:21 +00:00