Commit Graph
37 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Miguel de Icaza ec3fb70d33 [System] Fix parsing of IPv6 addresses (bug #18574)
From Dick Porter:

The IPv6 address parser misses some syntax errors, and can become confused by
addresses that at first glance look IPv4 compatible.  The attach patch contains
the following fixes:

Don't fail to parse an address if we mistakenly thought it was IPv4 compatible
or mapped, just treat it as IPv6.

Fix IPv4-compatible and mapped address formatting in ToString().

Fix parsing of colons - specifically occurrences of ':::'.

Make sure blocks of digits are no longer than 4 characters.

Add some more parsing tests to Mono's NUnit test suite.

Add a NUnit test for bogus IPv6 addresses.
2014-05-23 11:05:09 -04:00
Alexander Köplinger daf2340d47 [System] Fixed an error in the implementation of System.Net.IPAddress.IsIPv6Teredo
The property was introduced with PR #870 but it missed to convert network byte order to host byte order, so the comparison
wasn't working correctly and the corresponding unit test failed. @marek-safar erroneously "fixed" the test in 27e07c7.

This is the corrected implementation and the original test now works as intended.
2014-02-01 22:02:27 +01:00
Marek Safar 27e07c76d8 Fixes failing test 2014-01-14 14:45:38 +01:00
Fredrick Galoso d27abb23af [system] Add IsIPv6Teredo to System.Net.IpAddress
Adds support for checking for an IPv6 Teredo address, introduced in
.NET Framework 4.
2014-01-11 21:23:50 -06:00
Marek Safar f0ad346fb6 Mobile tests update 2013-02-22 21:41:19 +01:00
Miguel de Icaza ae0feab435 Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported 2012-06-01 18:04:24 -04:00
Gonzalo Paniagua Javier 621f60bb2e new address
svn path=/trunk/mcs/; revision=159636
2010-06-28 22:15:51 +00:00
Gonzalo Paniagua Javier 86c70cb777 2009-01-20 Gonzalo Paniagua Javier <[email protected]>
* IPAddressTest.cs: tests for bug #467472.


svn path=/trunk/mcs/; revision=123858
2009-01-20 06:38:05 +00:00
Atsushi Eno 8d708f6fbd 2008-08-06 Atsushi Enomoto <[email protected]>
* IPAddress.cs : several IPv4 parsing fix exposed by bug #411920.

	* IPAddressTest.cs : added test strings for bug #411920 as well as
	  enabling some ipv4ParseOK strings.


svn path=/trunk/mcs/; revision=109737
2008-08-06 05:21:04 +00:00
Gert Driesen b26da0a865 * IPAddress.cs (Parse): Changed argument name to match MS.
(TryParse): Changed argument name to match MS.
(ParseIPV4): Only treat zero-length or " " address as empty on 1.0
profile. On 2.0 profile, only ignore characters after blank if last
part is valid hex string.
* IPv6Address.cs: Removed extra spaces and tabs.
* IPAddressTest.cs: Remove use of deprecated Assertion. Improved
existing tests.

svn path=/trunk/mcs/; revision=94052
2008-01-27 15:20:02 +00:00
Atsushi Eno b21b41fb95 2007-08-29 Atsushi Enomoto <[email protected]>
* IPAddress.cs, IPv6Address.cs : (ToString) output ScopeId.

	* IPAddressTest.cs : added an address with scope id to parse/format
	  test.


svn path=/trunk/mcs/; revision=85016
2007-08-29 18:00:42 +00:00
Ilya Kharmatsky 66285529d7 Excluded the tests, which are not working under Grasshopper (all changes under 'TARGET_JVM' directive)
svn path=/trunk/mcs/; revision=72030
2007-01-31 15:20:18 +00:00
Ilya Kharmatsky ee3f6961bd Fixed missed bracket under 'TARGET_JVM' directive.
svn path=/trunk/mcs/; revision=71861
2007-01-29 11:22:06 +00:00
Ilya Kharmatsky 9968e7c515 Excluded under 'TARGET_JVM' not working test.
svn path=/trunk/mcs/; revision=71816
2007-01-28 18:35:16 +00:00
Gert Driesen 098d7508d8 * IPAddressTest.cs: Added test for invalid addresses. Fixed 4-byte
test on 2.0 profile.
* IPAddress.cs: Provide more meaningful exception message on 2.0
profile.

svn path=/trunk/mcs/; revision=71811
2007-01-28 16:23:05 +00:00
Gert Driesen 819d4c3f16 * IPAddress.cs: On 1.1, 4-byte addresses are not supported in the
ctor. Added null checks for the address passed in the ctors.
* IPAddressTest.cs: Added 4-byte and null address tests.

svn path=/trunk/mcs/; revision=70191
2006-12-28 21:18:12 +00:00
Atsushi Eno 370fb4b787 2006-03-28 Atsushi Enomoto <[email protected]>
* IPAddress.cs : ugh, I was testing with run-test-ondotnet, not
	  run-test. Those IPv6 properties needed to be reimplemented.

	* IPAddressTest.cs : actually #11 in TryParse() is not working.
	  added more tests on IsIPv6Blah properties.


svn path=/trunk/mcs/; revision=58634
2006-03-28 01:09:20 +00:00
Atsushi Eno 82e07f0f17 2006-03-27 Atsushi Enomoto <[email protected]>
* IPAddress.cs : added NET_2_0 TryParse() and IPv6 related properties.

	* IPAddressTest.cs : added some tests for TryParse() and IPv6 related
	  properties.


svn path=/trunk/mcs/; revision=58613
2006-03-27 19:12:24 +00:00
Gonzalo Paniagua Javier f4e49fd3e4 2005-11-22 Gonzalo Paniagua Javier <[email protected]>
* IPAddressTest.cs: more tests for the byte[] ctor.


svn path=/trunk/mcs/; revision=53373
2005-11-22 23:51:50 +00:00
Sebastien Pouliot 79c135ad63 2005-11-15 Sebastien Pouliot <[email protected]>
* IPAddressTest.cs: Fixed an LoopbackIPv6 test case (missing '[') that
	doesn't work on either MS 1.x or 2.0 (and won't work for long on Mono)


svn path=/trunk/mcs/; revision=53065
2005-11-15 15:31:13 +00:00
Gonzalo Paniagua Javier 88afd859de 2005-06-03 Gonzalo Paniagua Javier <[email protected]>
* IPAddressTest.cs: cleanup and added loopback IPv6 test.


svn path=/trunk/mcs/; revision=45371
2005-06-03 13:08:06 +00:00
Sebastien Pouliot 0eea5b4ce3 IPAddressTest.cs: Some tests may not work if support for IPv6 is disabled in machine.config. Tests haven't re-worked to check for Socket.SupportsIPv6 to ignore them in this case.
svn path=/trunk/mcs/; revision=39108
2005-01-18 18:47:48 +00:00
Gonzalo Paniagua Javier 2e5680d638 2005-01-18 Gonzalo Paniagua Javier <[email protected]>
* IPAddressTest.cs: this test fails with a FormatException.


svn path=/trunk/mcs/; revision=39101
2005-01-18 16:44:16 +00:00
Nick Drochak 127598891e 2005-01-10 Nick Drochak <[email protected]>
* IPAddressTest.cs: Make tests pass on Fx1.1

svn path=/trunk/mcs/; revision=38592
2005-01-10 07:09:02 +00:00
Peter Williams accc28dd64 2003-07-16 Peter Williams <[email protected]>
A whole passel of build system changes. Doc updates:

	* build/README.makefiles: Doc updates.

	* build/profiles/net_1_0.make: Doc changes.

	* INSTALL.txt: A few more touchups.

	Better defaults:

	* build/config-default.make (prefix): Default install prefix
	should be /usr/local.

	* build/profiles/bootstrap.make: This profile ...

	* build/profiles/default.make: ... is now the default.

	* build/profiles/atomic.make: And the default is now this.

	Fixes for pre-build checks:

	* Makefile: Do the platform and (new) profile checks
	before the build, which took some infrastructure changes.

	* build/rules.make: Allow a Makefile to specify its own all/install/etc
	targets.

	* build/profiles/default.make (profile-check): Add a blank
	target here.

	* build/profiles/atomic.make: Check for a full MCS install to
	build against.

	HP/UX fixes with help from Bernie Solomon:

	* build/config-default.make (ECHO_ESCAPE): HP/UX 'echo'
        doesn't need a -e parameter to interpret escape codes. Test for
        that and define a configuration parameter.

        * build/library.make ($(makefrag)): Use $(ECHO_ESCAPE)
        instead of assuming that 'echo -e' will interpret escape
        codes.

        * build/executable.make ($(makefrag)): Here too.

	A make distcheck fix:

	* Makefile: Inherit the current prefix so that the build can
	find the right System.Xml.dll.

	And Windows build fixes with the invaluable help of Sebastian
	Pouliot (in various subdirectories).

class/Mono.Data.SqliteClient:

2003-07-16  Peter Williams  <[email protected]>

	* Makefile (LIB_MCS_FLAGS): Add /r:System.dll here. Why wasn't
	this necessary with MCS? (csc.exe needs it.)

class/System:

2003-07-16  Peter Williams  <[email protected]>

	* Makefile (SCARY_LIB): Flip around since what was bootstrap
	is now default.

class/System/Test/System.Net:

2003-07-16  Peter Williams  <[email protected]>

	* IPAddressTest.cs: #if NET_1_1 for some IPv6 tests that
	rely on some NET_1_1-only features.

class/System/Test/System.Net.Sockets:

2003-07-16  Peter Williams  <[email protected]>

	* TcpListenerTest.cs: Initialize outSock to null to
	prevent an mcs compile error.

class/System.Data:

2003-07-16  Peter Williams  <[email protected]>

	* Makefile: Flip around for the new default build
	profile. (In a separate commit)

class/System.Windows.Forms:

2003-07-16  Peter Williams  <[email protected]>

	* System.Windows.Forms.dll.sources: Don't build with two
	AssemblyInfo.cs files.

class/corlib:

2003-07-16  Peter Williams  <[email protected]>

	* Makefile ($(test_makefrag)): Use $(ECHO_ESCAPE) for HP/UX
	portability fixes.
	(all-local): Don't build $(cmplib) by default, it's not something
	most people need, and the build is broken on Windows right now anyway.

ilasm:

2003-07-16  Peter Williams  <[email protected]>

	* Makefile (ILParser.cs): Move this from parser/ so we avoid
	slash direction issues on the Windows build.

	* .cvsignore: Add ILParser.cs here.

ilasm/parser:

2003-07-16  Peter Williams  <[email protected]>

	* .cvsignore: ILParser.cs has been moved.

tools:

2003-07-16  Peter Williams  <[email protected]>

	* Makefile (DIST_ONLY_SUBDIRS): Don't build SqlSharp, it's
	very old and doesn't build on Windows.

svn path=/trunk/mcs/; revision=16292
2003-07-16 05:08:19 +00:00
Jerome Laban 3166a7d7e4 2003-07-14 Jerome Laban <[email protected]>
* IPAddressTest.cs: Added IPv6 addresses tests.

svn path=/trunk/mcs/; revision=16218
2003-07-14 16:04:24 +00:00
Martin Willemoes Hansen 2320c1fddc * Removed: Old AllTests.cs files
* NUnit20ified the tests.

svn path=/trunk/mcs/; revision=12666
2003-03-18 21:45:41 +00:00
Lawrence Pit 386573a380 * Rewrote IPAddress.Parse method, passing all unit tests
svn path=/trunk/mcs/; revision=4439
2002-05-09 10:43:34 +00:00
Lawrence Pit 13666c9f85 * Added tests to IPAddressTest.cs
* Fixed tests in CookieTest.cs, SocketPermissionsTest.cs, IPEndPointTest.cs

svn path=/trunk/mcs/; revision=4437
2002-05-09 09:04:02 +00:00
Lawrence Pit f739d6b635 added test for is loopback address
svn path=/trunk/mcs/; revision=4292
2002-05-05 06:32:33 +00:00
Nick Drochak f40a0fb347 2002-04-30 Nick Drochak <[email protected]>
* IPAddressTest.cs: Remove unused code to eliminate compiler warnings.

svn path=/trunk/mcs/; revision=4148
2002-04-29 11:48:07 +00:00
Nick Drochak a6190d8168 2002-04-24 Nick Drochak <[email protected]>
* IPAddressTest.cs: Make test conform to MS behavior. Also, if wrong
	exception is thrown, let eveyone know which one.

svn path=/trunk/mcs/; revision=4018
2002-04-24 08:39:05 +00:00
Gonzalo Paniagua Javier c95f392f8b 2002-04-23 Gonzalo Paniagua Javier <[email protected]>
* IPAddressTest.cs: use BitConverter to set localhost, catch
	OverflowException in TestParseWrong() and changed some constants.

svn path=/trunk/mcs/; revision=4003
2002-04-23 21:07:56 +00:00
Gonzalo Paniagua Javier c303807db2 2002-04-19 Gonzalo Paniagua Javier <[email protected]>
* AllTests.cs: added IPEndPointTest.
	* IPEndPointTest.cs: added file (author: Lawrence Pit).
	* IPAdressTest.cs: use Fail is expected exception are not raised.

svn path=/trunk/mcs/; revision=3903
2002-04-19 10:03:21 +00:00
Gonzalo Paniagua Javier ff29f7f165 2002-04-15 Gonzalo Paniagua Javier <[email protected]>
* IPAddressTest.cs: use System.BitConverter.IsLittleEndian (suggested
	by Paolo) instead of guessing the endianness.

svn path=/trunk/mcs/; revision=3833
2002-04-15 16:07:13 +00:00
Gonzalo Paniagua Javier 7d54a1b2bf 2002-04-15 Gonzalo Paniagua Javier <[email protected]>
* System.Net/: added directory.
	* AllTests.cs: added System.Net suite.

In System.Net/

	* ChangeLog:
	* AllTests.cs:
	* IPAddressTest.cs: added files.

svn path=/trunk/mcs/; revision=3810
2002-04-14 20:25:12 +00:00