I think I found the problem. The Socket class in tomcat.jni specifies recvFrom() whereas the native network.c implements recvfrom() (all lowercase). Changing the java method name and rebuilding tomcat removed the UnsatisfiedLink error (I mentioned this on the tomcat dev list...), and I now also get the correct IP address back, however the port field is not updated by recvfrom()...
- [APR transport] recvfrom() vs recvFrom() Lorenz Breu
- Re: [APR transport] recvfrom() vs recvFrom() Mladen Turk
