Return to misc.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.84, 2010/11/21 01:01:13 | version 1.85, 2011/03/29 18:54:17 | ||
---|---|---|---|
|
|
||
return val; | return val; | ||
} | } | ||
const char * | |||
iptos2str(int iptos) | |||
{ | |||
int i; | |||
static char iptos_str[sizeof "0xff"]; | |||
for (i = 0; ipqos[i].name != NULL; i++) { | |||
if (ipqos[i].value == iptos) | |||
return ipqos[i].name; | |||
} | |||
snprintf(iptos_str, sizeof iptos_str, "0x%02x", iptos); | |||
return iptos_str; | |||
} |