MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sppp_print_string

Function sppp_print_string

freebsd/net/if_spppsubr.c:5373–5388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5371}
5372
5373static void
5374sppp_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
5391static const char *

Callers 2

sppp_chap_inputFunction · 0.85
sppp_pap_inputFunction · 0.85

Calls 1

logFunction · 0.50

Tested by

no test coverage detected