PPP, place print packet debug codenames in ROM

This commit is contained in:
Sylvain Rochet 2015-04-24 00:13:25 +02:00
parent 44af6978db
commit 737a6921c3
7 changed files with 8 additions and 8 deletions

View File

@ -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,

View File

@ -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"
};

View File

@ -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",

View File

@ -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"
};

View File

@ -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"
};

View File

@ -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",

View File

@ -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"
};