Apply the negotiated DSCP value to the UDP socket after a successful session open and clear it before closing to support network-level quality of service. This change adds platform-specific socket option handling for IPv4 TOS and IPv6 Traffic Class.
20 lines
411 B
Rust
20 lines
411 B
Rust
use super::*;
|
|
use crate::config::{NegotiationPolicy, DEFAULT_OPEN_TIMEOUTS};
|
|
use irtt_proto::{
|
|
echo_packet_len, flags::FLAG_HMAC, flags::FLAG_OPEN, flags::FLAG_REPLY, verify_hmac, Clock,
|
|
ReceivedStats, StampAt, HMAC_SIZE, MAGIC,
|
|
};
|
|
use std::{thread, time::SystemTime};
|
|
|
|
mod support;
|
|
use support::*;
|
|
|
|
mod close;
|
|
mod config;
|
|
mod dscp;
|
|
mod hmac;
|
|
mod negotiation;
|
|
mod no_test;
|
|
mod open;
|
|
mod probes_replies;
|