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

Function sppp_proto_name

freebsd/net/if_spppsubr.c:5349–5362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5347}
5348
5349static const char *
5350sppp_proto_name(u_short proto)
5351{
5352 static char buf[12];
5353 switch (proto) {
5354 case PPP_LCP: return "lcp";
5355 case PPP_IPCP: return "ipcp";
5356 case PPP_PAP: return "pap";
5357 case PPP_CHAP: return "chap";
5358 case PPP_IPV6CP: return "ipv6cp";
5359 }
5360 snprintf(buf, sizeof(buf), "proto/0x%x", (unsigned)proto);
5361 return buf;
5362}
5363
5364static void
5365sppp_print_bytes(const u_char *p, u_short len)

Callers 2

sppp_cp_sendFunction · 0.85
sppp_lcp_RCRFunction · 0.85

Calls 1

snprintfFunction · 0.85

Tested by

no test coverage detected