Lines Matching defs:tos
34 if ((iph->tos & IPTOS_TOS_MASK) != tosinfo->tos) {
39 oldtos = iph->tos;
40 iph->tos = (iph->tos & IPTOS_PREC_MASK) | tosinfo->tos;
41 nf_csum_replace2(&iph->check, htons(oldtos), htons(iph->tos));
53 const u_int8_t tos = ((struct ipt_tos_target_info *)targinfo)->tos;
55 if (tos != IPTOS_LOWDELAY
56 && tos != IPTOS_THROUGHPUT
57 && tos != IPTOS_RELIABILITY
58 && tos != IPTOS_MINCOST
59 && tos != IPTOS_NORMALSVC) {
60 printk(KERN_WARNING "TOS: bad tos value %#x\n", tos);