jpcap - IPPacket rsv_tos

Hello there

Does anyone has any idea regarding the rsv_tos option for the jpcap.packet.IPPacket class of the jpcap lib.....

Specifically I try to view the TOS field of a Packet (which, by the way, is marked) using the following sc.

if(packetr instanceof IPPacket)

{

jpcap.packet.IPPacket ip_pack=(jpacap.packet.IPPacket)packet

System.out.println(ip_pack.rsv_tos);

}

.....

the point is that I get that the ip_pack.rsv_tos equal to zero even when the Type Of Service field is marked......

Any ideas, suggestions or alternative solutions are well accepted

Thanks in advance

[643 byte] By [spirusa] at [2007-11-26 18:24:20]
# 1
One idea is to find the appropriate forum for your question. I don't see any JNI in your posting.
bschauwejavaa at 2007-7-9 5:58:24 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Well I made that question in this forum because jpcap use jni.Another reason is that I found a similar question in this forum. http://forum.java.sun.com/thread.jspa?threadID=650352&messageID=4303932Moreover never mind I solved it.Thank you anyway
spirusa at 2007-7-9 5:58:24 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
How have you solved it?I have the same problem - always get zero tos values.Thanks in advance!
Mooga at 2007-7-9 5:58:24 > top of Java-index,Java HotSpot Virtual Machine,Specifications...