From 737a6921c3fd9ef6ace17685b208b1af394f42b6 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Fri, 24 Apr 2015 00:13:25 +0200 Subject: [PATCH] PPP, place print packet debug codenames in ROM --- src/netif/ppp/ccp.c | 2 +- src/netif/ppp/chap-new.c | 2 +- src/netif/ppp/eap.c | 4 ++-- src/netif/ppp/ipcp.c | 2 +- src/netif/ppp/ipv6cp.c | 2 +- src/netif/ppp/lcp.c | 2 +- src/netif/ppp/upap.c | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/netif/ppp/ccp.c b/src/netif/ppp/ccp.c index 77e540ba..506f5d21 100644 --- a/src/netif/ppp/ccp.c +++ b/src/netif/ppp/ccp.c @@ -1513,7 +1513,7 @@ static void ccp_down(fsm *f) { /* * Print the contents of a CCP packet. */ -static const char *ccp_codenames[] = { +static const char* const ccp_codenames[] = { "ConfReq", "ConfAck", "ConfNak", "ConfRej", "TermReq", "TermAck", "CodeRej", NULL, NULL, NULL, NULL, NULL, NULL, diff --git a/src/netif/ppp/chap-new.c b/src/netif/ppp/chap-new.c index bb280404..40d4a9d6 100644 --- a/src/netif/ppp/chap-new.c +++ b/src/netif/ppp/chap-new.c @@ -583,7 +583,7 @@ static void chap_protrej(ppp_pcb *pcb) { /* * chap_print_pkt - print the contents of a CHAP packet. */ -static const char *chap_code_names[] = { +static const char* const chap_code_names[] = { "Challenge", "Response", "Success", "Failure" }; diff --git a/src/netif/ppp/eap.c b/src/netif/ppp/eap.c index 2a3bf43e..f0852f97 100644 --- a/src/netif/ppp/eap.c +++ b/src/netif/ppp/eap.c @@ -2135,11 +2135,11 @@ static void eap_input(ppp_pcb *pcb, u_char *inp, int inlen) { /* * eap_printpkt - print the contents of an EAP packet. */ -static const char *eap_codenames[] = { +static const char* const eap_codenames[] = { "Request", "Response", "Success", "Failure" }; -static const char *eap_typenames[] = { +static const char* const eap_typenames[] = { "Identity", "Notification", "Nak", "MD5-Challenge", "OTP", "Generic-Token", NULL, NULL, "RSA", "DSS", "KEA", "KEA-Validate", diff --git a/src/netif/ppp/ipcp.c b/src/netif/ppp/ipcp.c index c16a5b3f..8fe596fc 100644 --- a/src/netif/ppp/ipcp.c +++ b/src/netif/ppp/ipcp.c @@ -2215,7 +2215,7 @@ create_resolv(peerdns1, peerdns2) /* * ipcp_printpkt - print the contents of an IPCP packet. */ -static const char *ipcp_codenames[] = { +static const char* const ipcp_codenames[] = { "ConfReq", "ConfAck", "ConfNak", "ConfRej", "TermReq", "TermAck", "CodeRej" }; diff --git a/src/netif/ppp/ipv6cp.c b/src/netif/ppp/ipv6cp.c index f1011fb7..61f49d70 100644 --- a/src/netif/ppp/ipv6cp.c +++ b/src/netif/ppp/ipv6cp.c @@ -1387,7 +1387,7 @@ ipv6cp_script(script) /* * ipv6cp_printpkt - print the contents of an IPV6CP packet. */ -static const char *ipv6cp_codenames[] = { +static const char* const ipv6cp_codenames[] = { "ConfReq", "ConfAck", "ConfNak", "ConfRej", "TermReq", "TermAck", "CodeRej" }; diff --git a/src/netif/ppp/lcp.c b/src/netif/ppp/lcp.c index 1dfd74f0..885a381c 100644 --- a/src/netif/ppp/lcp.c +++ b/src/netif/ppp/lcp.c @@ -2370,7 +2370,7 @@ static void lcp_finished(fsm *f) { /* * lcp_printpkt - print the contents of an LCP packet. */ -static const char *lcp_codenames[] = { +static const char* const lcp_codenames[] = { "ConfReq", "ConfAck", "ConfNak", "ConfRej", "TermReq", "TermAck", "CodeRej", "ProtRej", "EchoReq", "EchoRep", "DiscReq", "Ident", diff --git a/src/netif/ppp/upap.c b/src/netif/ppp/upap.c index c6728a60..756e711b 100644 --- a/src/netif/ppp/upap.c +++ b/src/netif/ppp/upap.c @@ -595,7 +595,7 @@ static void upap_sresp(ppp_pcb *pcb, u_char code, u_char id, const char *msg, in /* * upap_printpkt - print the contents of a PAP packet. */ -static const char *upap_codenames[] = { +static const char* const upap_codenames[] = { "AuthReq", "AuthAck", "AuthNak" };