You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/07/28 22:12:04 UTC

DO NOT REPLY [Bug 35920] - AOBE when IPAddress of nodes differ in length

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35920>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35920





------- Additional Comments From rainer.jung@kippdata.de  2005-07-28 22:12 -------
It looks like the Datagram always has buffer for 1000 Bytes.
The IP itself has constant length (4 Bytes), the name (containing the IP as a
string) has variable length, but the length is passed as part of the datagram.
So no bug to be seen here.

I tried with two different length IPs - no problem.

If the third line of this:
       int dlen = XByteBuffer.toInt(dlend, 0);
       byte[] domaind = new byte[dlen];
       System.arraycopy(data, nlen + 24, domaind, 0, domaind.length);
is where it happens, can you debug by a print statement giving:

data.getLength()
XByteBuffer.toLong(alived, 0))
XByteBuffer.toInt(portd, 0),
addressToString(addr),
nlen,
new String(named),
dlen,

and for i=0...dlen-1
data[nlen + 24 + i]

That way you can see, if you received the data which is expected, or where there
might be something wrong.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org