mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-09 17:13:49 +08:00
PPP, CORE, Removed (*datainput) from struct protent if not used
Data input is only used by CCP and ECP, which are not supported at this time, remove this entry from struct protent to save some flash.
This commit is contained in:
@@ -192,7 +192,9 @@ const struct protent ccp_protent = {
|
||||
#if PRINTPKT_SUPPORT
|
||||
ccp_printpkt,
|
||||
#endif /* PRINTPKT_SUPPORT */
|
||||
#if PPP_DATAINPUT
|
||||
ccp_datainput,
|
||||
#endif /* PPP_DATAINPUT */
|
||||
#if PRINTPKT_SUPPORT
|
||||
"CCP",
|
||||
"Compressed",
|
||||
|
||||
@@ -651,7 +651,9 @@ const struct protent chap_protent = {
|
||||
#if PRINTPKT_SUPPORT
|
||||
chap_print_pkt,
|
||||
#endif /* PRINTPKT_SUPPORT */
|
||||
#if PPP_DATAINPUT
|
||||
NULL, /* datainput */
|
||||
#endif /* PPP_DATAINPUT */
|
||||
#if PRINTPKT_SUPPORT
|
||||
"CHAP", /* name */
|
||||
NULL, /* data_name */
|
||||
|
||||
@@ -123,7 +123,9 @@ const struct protent eap_protent = {
|
||||
#if PRINTPKT_SUPPORT
|
||||
eap_printpkt, /* print a packet in readable form */
|
||||
#endif /* PRINTPKT_SUPPORT */
|
||||
#if PPP_DATAINPUT
|
||||
NULL, /* process a received data packet */
|
||||
#endif /* PPP_DATAINPUT */
|
||||
#if PRINTPKT_SUPPORT
|
||||
"EAP", /* text name of protocol */
|
||||
NULL, /* text name of corresponding data protocol */
|
||||
|
||||
@@ -111,7 +111,9 @@ const struct protent ecp_protent = {
|
||||
#if PRINTPKT_SUPPORT
|
||||
ecp_printpkt,
|
||||
#endif /* PRINTPKT_SUPPORT */
|
||||
#if PPP_DATAINPUT
|
||||
NULL, /* ecp_datainput, */
|
||||
#endif /* PPP_DATAINPUT */
|
||||
#if PRINTPKT_SUPPORT
|
||||
"ECP",
|
||||
"Encrypted",
|
||||
|
||||
@@ -290,7 +290,9 @@ const struct protent ipcp_protent = {
|
||||
#if PRINTPKT_SUPPORT
|
||||
ipcp_printpkt,
|
||||
#endif /* PRINTPKT_SUPPORT */
|
||||
#if PPP_DATAINPUT
|
||||
NULL,
|
||||
#endif /* PPP_DATAINPUT */
|
||||
#if PRINTPKT_SUPPORT
|
||||
"IPCP",
|
||||
"IP",
|
||||
|
||||
@@ -283,7 +283,9 @@ const struct protent ipv6cp_protent = {
|
||||
#if PRINTPKT_SUPPORT
|
||||
ipv6cp_printpkt,
|
||||
#endif /* PRINTPKT_SUPPORT */
|
||||
#if PPP_DATAINPUT
|
||||
NULL,
|
||||
#endif /* PPP_DATAINPUT */
|
||||
#if PRINTPKT_SUPPORT
|
||||
"IPV6CP",
|
||||
"IPV6",
|
||||
|
||||
@@ -284,7 +284,9 @@ const struct protent lcp_protent = {
|
||||
#if PRINTPKT_SUPPORT
|
||||
lcp_printpkt,
|
||||
#endif /* PRINTPKT_SUPPORT */
|
||||
#if PPP_DATAINPUT
|
||||
NULL,
|
||||
#endif /* PPP_DATAINPUT */
|
||||
#if PRINTPKT_SUPPORT
|
||||
"LCP",
|
||||
NULL,
|
||||
|
||||
@@ -101,7 +101,9 @@ const struct protent pap_protent = {
|
||||
#if PRINTPKT_SUPPORT
|
||||
upap_printpkt,
|
||||
#endif /* PRINTPKT_SUPPORT */
|
||||
#if PPP_DATAINPUT
|
||||
NULL,
|
||||
#endif /* PPP_DATAINPUT */
|
||||
#if PRINTPKT_SUPPORT
|
||||
"PAP",
|
||||
NULL,
|
||||
|
||||
Reference in New Issue
Block a user