* freenetwork at web.de <freenetwork at web.de> [2006-08-16 15:53:21]:

> Uh, I'm not sure and I've never tested it, but isn't Freenet usually and 
> otherwise IPv6 capable?
> 

The initial plan is to have ipv6 support once we have transport plugins or
it's widely deployed ... both are vaporwares ;)

The code was v6 compatible, I doubt it's still ... and anyway as we are
selecting v4 by default, noone will use v6.

You're welcome to port the non-ipv6 aware code.
> 
> >Author: nextgens
> >Date: 2006-08-16 13:48:59 +0000 (Wed, 16 Aug 2006)
> >New Revision: 10118
> >
> >Modified:
> >   trunk/freenet/src/freenet/transport/IPUtil.java
> >Log:
> >we should reject ipv6 addresses even in 'public static boolean checkAddre=
> >ss(byte[] b)'
> >
> >Modified: trunk/freenet/src/freenet/transport/IPUtil.java
> >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
> >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
> >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> >--- trunk/freenet/src/freenet/transport/IPUtil.java  2006-08-16 13:44:57 U=
> >TC (rev 10117)
> >+++ trunk/freenet/src/freenet/transport/IPUtil.java  2006-08-16 13:48:59 U=
> >TC (rev 10118)
> >@@ -68,6 +68,9 @@
> >     }
> >=20
> >     public static boolean checkAddress(byte[] b) {
> >+            if(b.length !=3D 4) {
> >+                    return false;
> >+            }
> >             int[] i =3D new int[4];
> >             for(int x=3D0;x<4;x++) i[x] =3D b[x] & 0xff;
> >             return checkAddress(i);
> >
> >_______________________________________________
> >cvs mailing list
> >cvs at freenetproject.org
> >http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
> 
> 
> 
> _______________________________________________
> Devl mailing list
> Devl at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
> 

Reply via email to