| 5371 | } |
| 5372 | |
| 5373 | static void |
| 5374 | sppp_print_string(const char *p, u_short len) |
| 5375 | { |
| 5376 | u_char c; |
| 5377 | |
| 5378 | while (len-- > 0) { |
| 5379 | c = *p++; |
| 5380 | /* |
| 5381 | * Print only ASCII chars directly. RFC 1994 recommends |
| 5382 | * using only them, but we don't rely on it. */ |
| 5383 | if (c < ' ' || c > '~') |
| 5384 | log(-1, "\\x%x", c); |
| 5385 | else |
| 5386 | log(-1, "%c", c); |
| 5387 | } |
| 5388 | } |
| 5389 | |
| 5390 | #ifdef INET |
| 5391 | static const char * |
no test coverage detected