IPv6 support [VM]

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

IPv6 support [VM]

Peter Uhnak
Hi,

does anyone know what is the state of Pharo's IPv6 support?

I've found some discussion from 2009/2010 talking about it and making changes to the VM, but it seems incomplete.

Creating IPv6 socket seems to be supported on the VM side (and I had no failure when I modified the netType from 0 to 3 in Socket>>initialize:)

https://github.com/pharo-project/pharo-vm/blob/master/opensmalltalk-vm/platforms/unix/plugins/SocketPlugin/sqUnixSocket.c#L521
https://github.com/pharo-project/pharo-vm/blob/master/opensmalltalk-vm/platforms/win32/plugins/SocketPlugin/sqWin32NewNet.c#L1325

However creating connection fails I guess here
https://github.com/pharo-project/pharo-vm/blob/master/opensmalltalk-vm/src/plugins/SocketPlugin/SocketPlugin.c#L1151

And even if it didn't fail there, sqSocketConnectToPort accepts address in sqInt (4 bytes), and sets the type to AF_INET
https://github.com/pharo-project/pharo-vm/blob/master/opensmalltalk-vm/platforms/unix/plugins/SocketPlugin/sqUnixSocket.c#L736

Was the effort abandoned? Am I doing something wrong and it actually should work?


Also NetNameResolver in Pharo is IPv4 only, but that's not an issue here.

Thanks,
Peter

Reply | Threaded
Open this post in threaded view
|

Re: IPv6 support [VM]

EstebanLM
there was some work but it was not finished, then is kind of aborted (for now).
if you want to take a look there are some primitives in the networking plugin… never finished, never tested, never done :)

Esteban


> On 14 Feb 2017, at 13:20, Peter Uhnak <[hidden email]> wrote:
>
> Hi,
>
> does anyone know what is the state of Pharo's IPv6 support?
>
> I've found some discussion from 2009/2010 talking about it and making changes to the VM, but it seems incomplete.
>
> Creating IPv6 socket seems to be supported on the VM side (and I had no failure when I modified the netType from 0 to 3 in Socket>>initialize:)
>
> https://github.com/pharo-project/pharo-vm/blob/master/opensmalltalk-vm/platforms/unix/plugins/SocketPlugin/sqUnixSocket.c#L521
> https://github.com/pharo-project/pharo-vm/blob/master/opensmalltalk-vm/platforms/win32/plugins/SocketPlugin/sqWin32NewNet.c#L1325
>
> However creating connection fails I guess here
> https://github.com/pharo-project/pharo-vm/blob/master/opensmalltalk-vm/src/plugins/SocketPlugin/SocketPlugin.c#L1151
>
> And even if it didn't fail there, sqSocketConnectToPort accepts address in sqInt (4 bytes), and sets the type to AF_INET
> https://github.com/pharo-project/pharo-vm/blob/master/opensmalltalk-vm/platforms/unix/plugins/SocketPlugin/sqUnixSocket.c#L736
>
> Was the effort abandoned? Am I doing something wrong and it actually should work?
>
>
> Also NetNameResolver in Pharo is IPv4 only, but that's not an issue here.
>
> Thanks,
> Peter
>


Reply | Threaded
Open this post in threaded view
|

Re: IPv6 support [VM]

Pierce Ng-3
On Tue, Feb 14, 2017 at 01:35:14PM +0100, Esteban Lorenzano wrote:
> there was some work but it was not finished, then is kind of aborted (for
> now).  if you want to take a look there are some primitives in the networking
> plugin… never finished, never tested, never done :)

Should be there in the VM/plugin. I got Unix domain socket working... and I
should dust off the Fogbugz issue that I created and add some tests.

Pierce