mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
PPP, place print packet debug codenames in ROM
This commit is contained in:
parent
44af6978db
commit
737a6921c3
@ -1513,7 +1513,7 @@ static void ccp_down(fsm *f) {
|
|||||||
/*
|
/*
|
||||||
* Print the contents of a CCP packet.
|
* Print the contents of a CCP packet.
|
||||||
*/
|
*/
|
||||||
static const char *ccp_codenames[] = {
|
static const char* const ccp_codenames[] = {
|
||||||
"ConfReq", "ConfAck", "ConfNak", "ConfRej",
|
"ConfReq", "ConfAck", "ConfNak", "ConfRej",
|
||||||
"TermReq", "TermAck", "CodeRej",
|
"TermReq", "TermAck", "CodeRej",
|
||||||
NULL, NULL, NULL, NULL, NULL, NULL,
|
NULL, NULL, NULL, NULL, NULL, NULL,
|
||||||
|
@ -583,7 +583,7 @@ static void chap_protrej(ppp_pcb *pcb) {
|
|||||||
/*
|
/*
|
||||||
* chap_print_pkt - print the contents of a CHAP packet.
|
* 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"
|
"Challenge", "Response", "Success", "Failure"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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.
|
* eap_printpkt - print the contents of an EAP packet.
|
||||||
*/
|
*/
|
||||||
static const char *eap_codenames[] = {
|
static const char* const eap_codenames[] = {
|
||||||
"Request", "Response", "Success", "Failure"
|
"Request", "Response", "Success", "Failure"
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *eap_typenames[] = {
|
static const char* const eap_typenames[] = {
|
||||||
"Identity", "Notification", "Nak", "MD5-Challenge",
|
"Identity", "Notification", "Nak", "MD5-Challenge",
|
||||||
"OTP", "Generic-Token", NULL, NULL,
|
"OTP", "Generic-Token", NULL, NULL,
|
||||||
"RSA", "DSS", "KEA", "KEA-Validate",
|
"RSA", "DSS", "KEA", "KEA-Validate",
|
||||||
|
@ -2215,7 +2215,7 @@ create_resolv(peerdns1, peerdns2)
|
|||||||
/*
|
/*
|
||||||
* ipcp_printpkt - print the contents of an IPCP packet.
|
* ipcp_printpkt - print the contents of an IPCP packet.
|
||||||
*/
|
*/
|
||||||
static const char *ipcp_codenames[] = {
|
static const char* const ipcp_codenames[] = {
|
||||||
"ConfReq", "ConfAck", "ConfNak", "ConfRej",
|
"ConfReq", "ConfAck", "ConfNak", "ConfRej",
|
||||||
"TermReq", "TermAck", "CodeRej"
|
"TermReq", "TermAck", "CodeRej"
|
||||||
};
|
};
|
||||||
|
@ -1387,7 +1387,7 @@ ipv6cp_script(script)
|
|||||||
/*
|
/*
|
||||||
* ipv6cp_printpkt - print the contents of an IPV6CP packet.
|
* ipv6cp_printpkt - print the contents of an IPV6CP packet.
|
||||||
*/
|
*/
|
||||||
static const char *ipv6cp_codenames[] = {
|
static const char* const ipv6cp_codenames[] = {
|
||||||
"ConfReq", "ConfAck", "ConfNak", "ConfRej",
|
"ConfReq", "ConfAck", "ConfNak", "ConfRej",
|
||||||
"TermReq", "TermAck", "CodeRej"
|
"TermReq", "TermAck", "CodeRej"
|
||||||
};
|
};
|
||||||
|
@ -2370,7 +2370,7 @@ static void lcp_finished(fsm *f) {
|
|||||||
/*
|
/*
|
||||||
* lcp_printpkt - print the contents of an LCP packet.
|
* lcp_printpkt - print the contents of an LCP packet.
|
||||||
*/
|
*/
|
||||||
static const char *lcp_codenames[] = {
|
static const char* const lcp_codenames[] = {
|
||||||
"ConfReq", "ConfAck", "ConfNak", "ConfRej",
|
"ConfReq", "ConfAck", "ConfNak", "ConfRej",
|
||||||
"TermReq", "TermAck", "CodeRej", "ProtRej",
|
"TermReq", "TermAck", "CodeRej", "ProtRej",
|
||||||
"EchoReq", "EchoRep", "DiscReq", "Ident",
|
"EchoReq", "EchoRep", "DiscReq", "Ident",
|
||||||
|
@ -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.
|
* upap_printpkt - print the contents of a PAP packet.
|
||||||
*/
|
*/
|
||||||
static const char *upap_codenames[] = {
|
static const char* const upap_codenames[] = {
|
||||||
"AuthReq", "AuthAck", "AuthNak"
|
"AuthReq", "AuthAck", "AuthNak"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user