Issue with DSCP marking using setTrafficClass and WireShark

后端 未结 1 1306
野性不改
野性不改 2021-01-18 23:32

I am trying to mark DSCP values using setTrafficClass. I have server and client set up on two different machines and I am able to print value of DSCP but I can not see it in

相关标签:
1条回答
  • 2021-01-18 23:56

    Last time I worked with DSCP values in Java one had to set the java.net.preferIPv4Stack system property to true due to a bug in the JVM. Othwerwise DSCP values would not be set on the underlying socket despite appearing to work in the java.net.Socket API.

    Also you may have to call setTrafficClass before connecting the socket, it may not work after connection on some platforms.

    java -Djava.net.preferIPv4Stack=true ...

    0 讨论(0)
提交回复
热议问题