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.
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.
* 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
(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
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
* 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
* 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
* 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
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
* 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
* IPAddressTest.cs: use BitConverter to set localhost, catch
OverflowException in TestParseWrong() and changed some constants.
svn path=/trunk/mcs/; revision=4003
* 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
* IPAddressTest.cs: use System.BitConverter.IsLittleEndian (suggested
by Paolo) instead of guessing the endianness.
svn path=/trunk/mcs/; revision=3833