Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Nov 20, 2023
1 parent 8e31761 commit 119e912
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions neqo-common/src/datagram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,29 @@ pub enum IpTosEcn {
// https://www.iana.org/assignments/dscp-registry/dscp-registry.xhtml
// #[derive(Copy, Clone)]
pub enum IpTosDscp {
DscpCs0 = 0b00000000, // [RFC2474]
DscpCs1 = 0b00100000, // [RFC2474]
DscpCs2 = 0b01000000, // [RFC2474]
DscpCs3 = 0b01100000, // [RFC2474]
DscpCs4 = 0b10000000, // [RFC2474]
DscpCs5 = 0b10100000, // [RFC2474]
DscpCs6 = 0b11000000, // [RFC2474]
DscpCs7 = 0b11100000, // [RFC2474]
DscpAf11 = 0b00101000, // [RFC2597]
DscpAf12 = 0b00110000, // [RFC2597]
DscpAf13 = 0b00111000, // [RFC2597]
DscpAf21 = 0b01001000, // [RFC2597]
DscpAf22 = 0b01010000, // [RFC2597]
DscpAf23 = 0b01011000, // [RFC2597]
DscpAf31 = 0b01101000, // [RFC2597]
DscpAf32 = 0b01110000, // [RFC2597]
DscpAf33 = 0b01111000, // [RFC2597]
DscpAf41 = 0b10001000, // [RFC2597]
DscpAf42 = 0b10010000, // [RFC2597]
DscpAf43 = 0b10011000, // [RFC2597]
DscpEf = 0b10111000, // [RFC3246]
DscpVoiceAdmit = 0b10110000, // [RFC5865]
DscpLe = 0b00000100, // [RFC8622]
DscpCs0 = 0b0000_0000, // [RFC2474]
DscpCs1 = 0b0010_0000, // [RFC2474]
DscpCs2 = 0b0100_0000, // [RFC2474]
DscpCs3 = 0b0110_0000, // [RFC2474]
DscpCs4 = 0b1000_0000, // [RFC2474]
DscpCs5 = 0b1010_0000, // [RFC2474]
DscpCs6 = 0b1100_0000, // [RFC2474]
DscpCs7 = 0b1110_0000, // [RFC2474]
DscpAf11 = 0b0010_1000, // [RFC2597]
DscpAf12 = 0b0011_0000, // [RFC2597]
DscpAf13 = 0b0011_1000, // [RFC2597]
DscpAf21 = 0b0100_1000, // [RFC2597]
DscpAf22 = 0b0101_0000, // [RFC2597]
DscpAf23 = 0b0101_1000, // [RFC2597]
DscpAf31 = 0b0110_1000, // [RFC2597]
DscpAf32 = 0b0111_0000, // [RFC2597]
DscpAf33 = 0b0111_1000, // [RFC2597]
DscpAf41 = 0b1000_1000, // [RFC2597]
DscpAf42 = 0b1001_0000, // [RFC2597]
DscpAf43 = 0b1001_1000, // [RFC2597]
DscpEf = 0b1011_1000, // [RFC3246]
DscpVoiceAdmit = 0b1011_0000, // [RFC5865]
DscpLe = 0b0000_0100, // [RFC8622]
}

// impl From<IpTosDscp> for u8 {
Expand Down

0 comments on commit 119e912

Please sign in to comment.