Home | History | Annotate | Download | only in ping

Lines Matching refs:tos

74 #define TOS_MAX		255		/* 8-bit TOS field */
85 int settos = 0; /* Set TOS, Precendence or other QOS options */
1184 printf("Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data\n");
1186 ip->version, ip->ihl, ip->tos, ip->tot_len, ip->id);
1217 /* Set Type of Service (TOS) and other Quality of Service relating bits */
1221 int tos;
1227 tos = (int)strtol(cp, &ep, 16);
1229 tos = (int)strtol(str, &ep, 10);
1233 fprintf(stderr, "ping: \"%s\" bad value for TOS\n", str);
1237 if (tos > TOS_MAX) {
1238 fprintf(stderr, "ping: the decimal value of TOS bits must be 0-254 (or zero)\n");
1241 return(tos);
1282 " [ -T timestamp option ] [ -Q tos ] [hop1 ...] destination\n");