Bug 2304 - DSCP Set/Get are using 8 bit values instead of 6
DSCP Set/Get are using 8 bit values instead of 6
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: internet
ns-3-dev
All All
: P5 enhancement
Assigned To: Tommaso Pecorella
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-20 19:36 UTC by Tommaso Pecorella
Modified: 2016-02-26 13:46 UTC (History)
2 users (show)

See Also:


Attachments
patch (4.71 KB, patch)
2016-02-20 19:36 UTC, Tommaso Pecorella
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2016-02-20 19:36:48 UTC
Created attachment 2287 [details]
patch

The IPv{4,6}Header DSCP enum is defined as xxxxxx00, i.e., 6 bits and two MBZ bits.

Although not wrong per-se, this could create a bit of confusion to the users because in the RFC the 6-bits notation is used.

The patch changes the enum values and the Get/Set functions accordingly.
Comment 1 Tommaso Pecorella 2016-02-26 13:46:03 UTC
Fixed in changeset 11927:f901e232a153