PlainDatagramSocketImpl.c send is using the size of the
datagram buffer instead of the datagram buffer length to send
the datagram.
i.e. dp = new DatagramPacket(new byte[1024], 32) will be sent at 1024 bytes,
not 32.
Now:
packetBufferLen = (*env)->GetArrayLength(env, packetBuffer);
Should be something like:
packetBufferLen = (*env)->GetIntField(env, packet, dp_lengthID);
So my send of 56 bytes is turning into a send of 32k. :-)