pub const IPTOS = struct 5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504pub const IPTOS = struct {
pub const TOS_MASK = 0x1e;
pub fn TOS(t: anytype) @TypeOf(t) {
return t & TOS_MASK;
}
pub const MINCOST = 0x02;
pub const RELIABILITY = 0x04;
pub const THROUGHPUT = 0x08;
pub const LOWDELAY = 0x10;
pub const PREC_MASK = 0xe0;
pub fn PREC(t: anytype) @TypeOf(t) {
return t & PREC_MASK;
}
pub const PREC_ROUTINE = 0x00;
pub const PREC_PRIORITY = 0x20;
pub const PREC_IMMEDIATE = 0x40;
pub const PREC_FLASH = 0x60;
pub const PREC_FLASHOVERRIDE = 0x80;
pub const PREC_CRITIC_ECP = 0xa0;
pub const PREC_INTERNETCONTROL = 0xc0;
pub const PREC_NETCONTROL = 0xe0;
}