next up previous contents
Next: Content of the Type Up: Idiomatic constructs Previous: TCP connections   Contents

Retrieving the Differentiated Services Field

The DS field defined in [RFC2474] is frequently used in classification on networks implementing the Differentiated Services architecture ([RFC2475]). defines the following fields:

ip_dsfield is the same as ip_tos (see section 2.13.1).

ip_dscp are the upper six bits of ip_dsfield, i.e. the DS field without the ECN bits ([RFC3168]).


#include ""

    class (<$ef>)
        if ip_dscp == 0b101110; /* RFC2598 */

Martin A. Brown 2003-11-06