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

Function sppp_ipcp_opt_name

freebsd/net/if_spppsubr.c:5290–5301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5288
5289#ifdef INET
5290static const char *
5291sppp_ipcp_opt_name(u_char opt)
5292{
5293 static char buf[12];
5294 switch (opt) {
5295 case IPCP_OPT_ADDRESSES: return "addresses";
5296 case IPCP_OPT_COMPRESSION: return "compression";
5297 case IPCP_OPT_ADDRESS: return "address";
5298 }
5299 snprintf (buf, sizeof(buf), "ipcp/0x%x", opt);
5300 return buf;
5301}
5302#endif
5303
5304#ifdef INET6

Callers 3

sppp_ipcp_RCRFunction · 0.85
sppp_ipcp_RCN_rejFunction · 0.85
sppp_ipcp_RCN_nakFunction · 0.85

Calls 1

snprintfFunction · 0.85

Tested by

no test coverage detected