Bug 2304

Summary: DSCP Set/Get are using 8 bit values instead of 6
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: internetAssignee: Tommaso Pecorella <tommaso.pecorella>
Status: RESOLVED FIXED    
Severity: enhancement CC: ns-bugs, tomh
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: patch

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