This enum may be extended in the future. NOTE: If you modify or add enums here, be sure to update //java/com/google/net/base/TrafficClassComparator.java and //net/base/google_iptos.h. WARNING: DO NOT write code that depends on this enum not growing, unless you explicitly want your code to fail compilation, or your tests to fail, when a new enum member is added. Things that you don't want to do include: 1. Using TrafficClass variable as a switch variable, without supplying a default case. 2. Supplying a default case, but doing LOG(FATAL) there. 3. Generating protobufs, that contain entries for each of the enum's members, then comparing the generated protobufs against a golden copy (the new members will not be present in the golden, and the comparison will fail).
| Enums | |
|---|---|
BE1 |
Application-selectable traffic classes Best effort |
AF1 |
Assured forwarding priority 1 |
AF2 |
Assured forwarding priority 2 |
AF3 |
Assured forwarding priority 3 |
AF4 |
Assured forwarding priority 4 |
NC1 |
Network control |
NC0 |
Network control |
BE0 |
Best effort at high packet loss |
LLQ |
Low-latency queue (LLQ) best effort |
LLQ1 |
LLQ assured forwarding priority 1 |
LLQ2 |
LLQ assured forwarding priority 2 |
LLQ3 |
LLQ assured forwarding priority 3 |