tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35920] - AOBE when IPAddress of nodes differ in length
Date Thu, 28 Jul 2005 20:12:04 GMT
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


Mime
View raw message