-static const char *ppp_protoname __P((u_int proto));
-static void handle_ctrl_proto __P((u_int proto,const u_char *p, int length));
-static void handle_chap __P((const u_char *p, int length));
-static void handle_pap __P((const u_char *p, int length));
-static void handle_bap __P((const u_char *p, int length));
-static int print_lcp_config_options __P((const u_char *p, int));
-static int print_ipcp_config_options __P((const u_char *p, int));
-static int print_ccp_config_options __P((const u_char *p, int));
-static int print_bacp_config_options __P((const u_char *p, int));
-static void handle_ppp __P((u_int proto, const u_char *p, int length));
-
-static const char *
-ppp_protoname(u_int proto)
-{
- static char buf[20];
-
- switch (proto) {
- case PPP_IP: return "IP";
-#ifdef PPP_XNS
- case PPP_XNS: return "XNS";
-#endif
-#ifdef PPP_IPX
- case PPP_IPX: return "IPX";
-#endif
-#ifdef PPP_COMP
- case PPP_COMP: return "COMP";
-#endif
-#ifdef PPP_IPCP
- case PPP_IPCP: return "IPCP";
-#endif
-#ifdef PPP_IPV6CP
- case PPP_IPV6CP: return "IPV6CP";
-#endif
-#ifdef PPP_IPXCP
- case PPP_IPXCP: return "IPXCP";
-#endif
-#ifdef PPP_CCP
- case PPP_CCP: return "CCP";
-#endif
-#ifdef PPP_LCP
- case PPP_LCP: return "LCP";
-#endif
-#ifdef PPP_PAP
- case PPP_PAP: return "PAP";
-#endif
-#ifdef PPP_LQR
- case PPP_LQR: return "LQR";
-#endif
-#ifdef PPP_CHAP
- case PPP_CHAP: return "CHAP";
-#endif
-#ifdef PPP_BACP
- case PPP_BACP: return "BACP";
-#endif
-#ifdef PPP_BAP
- case PPP_BAP: return "BAP";
-#endif
- default:
- snprintf(buf, sizeof(buf), "unknown-0x%04x", proto);
- return buf;
- }
-}
+static void handle_ctrl_proto (u_int proto,const u_char *p, int length);
+static void handle_chap (const u_char *p, int length);
+static void handle_pap (const u_char *p, int length);
+static void handle_bap (const u_char *p, int length);
+static int print_lcp_config_options (const u_char *p, int);
+static int print_ipcp_config_options (const u_char *p, int);
+static int print_ccp_config_options (const u_char *p, int);
+static int print_bacp_config_options (const u_char *p, int);
+static void handle_ppp (u_int proto, const u_char *p, int length);