Lines Matching defs:tos
33 "[!] --tos value Match Type of Service field from one of the\n"
46 { "tos", 1, 0, '1' },
54 unsigned int tos;
56 if (string_to_number(s, 0, 255, &tos) != -1) {
57 if (tos == IPTOS_LOWDELAY
58 || tos == IPTOS_THROUGHPUT
59 || tos == IPTOS_RELIABILITY
60 || tos == IPTOS_MINCOST
61 || tos == IPTOS_NORMALSVC) {
62 info->tos = (u_int8_t )tos;
68 info->tos = TOS_values[i].TOS;
87 /* Ensure that `--tos' haven't been used yet. */
90 "tos match: only use --tos once!");
106 print_tos(u_int8_t tos, int numeric)
112 if (TOS_values[i].TOS == tos) {
117 printf("0x%02x ", tos);
120 /* Final check; must have specified --tos. */
126 "TOS match: You must specify `--tos'");
140 print_tos(info->tos, numeric);
151 printf("--tos ");
152 print_tos(info->tos, 0);
155 static struct iptables_match tos = {
157 .name = "tos",
171 register_match(&tos);