The setter that uses the byte value was correct and set index 1 where the other setter was setting the byte value to index 2.
Gate COPS data will need additional unit testing and really should be refactored for normalization and semantics.
Change-Id: I719f186d661b3749ed7d9f9f3bef20a7323d4910
Signed-off-by: Steven Pisarski <s.pisarski@cablelabs.com>
@Override
public void setDSCP_TOSOverwrite(DSCPTOS dscpTos) {
// OR in the DSCPTOS enable flag with the Direction flag
- flags |= dscpTos.getValue();
- setByte(flags, (short) 0);
+ setDSCP_TOSOverwrite(dscpTos.getValue());
}
@Override
public void setDSCP_TOSOverwrite(byte dscpTos) {
- setByte(dscpTos, (short) 1);
+ flags |= dscpTos;
+ setByte(flags, (short) 1);
}