| 5347 | } |
| 5348 | |
| 5349 | static const char * |
| 5350 | sppp_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 | |
| 5364 | static void |
| 5365 | sppp_print_bytes(const u_char *p, u_short len) |
no test coverage detected