[Mono-list] Mono and IPv6

Philipp Baer phbaer at npw.net
Sun Feb 5 11:48:00 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

today I experienced some problems with Mono and IPv6. The first problem
I came over was that

  Socket.SupportsIPv6

always returns "False" on Mono 1.1.13.2. The flag in the machine.config
files seems to be ignored. When using Mono 1.1.8.3, however, "True" is
returned. That's only a cosmetic bug, I suppose, since for normal IPv6
operation, everything runs just fine.

The second problem I faced appeared when I wanted to subscribe to an
IPv6 multicast group (ff32::8000:5 in my case). The SetSocketOption call
only throws an "Invalid arguments" exception. This happened for both
Mono versions.

Am I missing something? Here's the source:

===
Socket s = new Socket(
		AddressFamily.InterNetworkV6,
		SocketType.Dgram,
		ProtocolType.Udp);
		
IPAddress ip = IPAddress.Parse("ff32::8000:5");

s.SetSocketOption(
	SocketOptionLevel.IPv6,
	SocketOptionName.AddMembership,
	new IPv6MulticastOption(ip));
===

I'm using the Mono Ubuntu packages (Breezy (1.1.8.3)
and Dapper (1.1.13.2)).


Thanks so far,

ciao, phb

- --
Philipp Baer <phbaer at npw.net> [http://www.npw.net/]
- --------------- contact information ---------------
mobile |+49-179-488 26 63|  fax |+49-751-557 57 50|
most current contact details  |'whois pb4412-ripe'|
- ---------------- gnupg-fingerprint ----------------
|16C7 84E8 5C5F C3D6 A8F1 A4DC E4CB A9A9 F5FA FF5D|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD5ixA5MupqfX6/10RAn+NAJ4h1OfGEoRw/RGUUC3lD3TiU2Au8wCgwuzQ
5JKyEfcUsFlBUjbVCOV7PdE=
=98rb
-----END PGP SIGNATURE-----


More information about the Mono-list mailing list