Re: RFC 3542 or RFC 2292 - Advanced Sockets Application Program Interface (API) for IPv6

2007-11-28 Thread Florian Weimer
* cormac mullally: > Firstly as some of you may know "type 0 routing header" has caused a > bit of controversy (see http://www.natisbad.org/ especially this > presentation http://www.secdev.org/conf/IPv6_RH_security-csw07.pdf) > and it seems that there is some security concerns. Does anyone have >

Re: RFC 3542 or RFC 2292 - Advanced Sockets Application Program Interface (API) for IPv6

2007-11-26 Thread cormac mullally
Hello Max, Ok i found it, in C:\openjdk\hotspot\src\share\vm\prims\jvm.cpp JVM_LEAF(jint, JVM_Socket(jint domain, jint type, jint protocol)) JVMWrapper("JVM_Socket"); return hpi::socket(domain, type, protocol); JVM_END And then for linix i found C:\openjdk\hotspot\src\os\linux\vm\hpi_linux.

Re: RFC 3542 or RFC 2292 - Advanced Sockets Application Program Interface (API) for IPv6

2007-11-26 Thread Max (Weijun) Wang
It's defined in the hotspot workspace. Max On Nov 26, 2007, at 6:23 PM, cormac mullally wrote: JVM_Socket

Re: RFC 3542 or RFC 2292 - Advanced Sockets Application Program Interface (API) for IPv6

2007-11-26 Thread cormac mullally
Hi all, I'm continuing to look at how java implements its sockets. Just had a look at how it works for solaris and linix. Can anyone give me any information on the function JVM_Socket, It is defined in the jvm.h file, but I can't find it implementation. Can someone confirm that is it built on th

Re: RFC 3542 or RFC 2292 - Advanced Sockets Application Program Interface (API) for IPv6

2007-11-23 Thread cormac mullally
Hi all, I had a quick look at openJDK and i see that on windows it uses winsock2 as is expected. I also see that in some paces it tries to use Raw Sockets, Inet4AddressImpl.c and Inet6AddressImpl.c . Do you think in theory it will be possible for me to create an IPv6 packet and header and send t

Re: RFC 3542 or RFC 2292 - Advanced Sockets Application Program Interface (API) for IPv6

2007-11-22 Thread cormac mullally
Hi Michael, I aggree it is quite specialised, but I think it would be good for java to support this. Yes I would love to use Linux or Solaris but I have to support windows. I am going to look at the internals of the openJDK now and see how it works. Thanks for your help so far and I will let you

Re: RFC 3542 or RFC 2292 - Advanced Sockets Application Program Interface (API) for IPv6

2007-11-22 Thread Michael McMahon
Hi Cormac, I don't think it's likely that Java SE will support RFC3542 in the near future. I can't say however, whether anybody is actually doing any work on trying to support it. It seems like a fairly specialised requirement, that the majority of IPv6 applications would not use. Have you l

RFC 3542 or RFC 2292 - Advanced Sockets Application Program Interface (API) for IPv6

2007-11-22 Thread cormac mullally
Hello all, I'm working on a project at the moment that needs's access to the "type 0 routing header" in an IPv6 packet. RFC 2292 describes a nice API, which allows you access to the routing header, see http://tools.ietf.org/html/rfc2292#section-8.9 I see that JavaSE supports RFC 2553 Basic Socket