use of TOS, identifier, flag fields for IP address using java code for deterministic packet marking
views:
116answers:
2
A:
You can't do this in Java. You can set the TrafficClass on a Socket or DatagramSocket. That's it.
EJP
2010-03-01 08:04:17
A:
Highly untested answer: use reflection to create java.net. PlainSocketImpl instances and see what you can do with it. Reflection is because this class is not public...
Other option: use JNI to call a C/C++ wrapper library of your making that will set the flags as you wish.
mlaverd
2010-03-01 08:32:00
That suggestion doesn't help in the slightest. There is nothing in the public or private API that will help here. Indeed there is nothing for several layers further down short of using JPcap, which has its own limitations.
EJP
2010-03-01 09:49:45