Skip to content
Snippets Groups Projects
Commit 70581d8c authored by Munish Mehta's avatar Munish Mehta
Browse files

Correct the getToS API to return the 6-bit value

parent 50f8f08e
No related branches found
No related tags found
No related merge requests found
......@@ -371,7 +371,7 @@ public class OFMatch implements Cloneable, Serializable {
* @return : 6-bit DSCP value (0-63)
*/
public byte getNetworkTypeOfService() {
return (byte) (this.networkTypeOfService >> 2);
return (byte) ((this.networkTypeOfService >> 2) & 0x3f);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment