removed more protent fields only used by print packets functions

This commit is contained in:
Sylvain Rochet 2012-06-02 02:14:19 +02:00
parent 2c4bd7162f
commit 6c908ac727
8 changed files with 16 additions and 0 deletions

View File

@ -197,8 +197,10 @@ struct protent ccp_protent = {
#endif /* PRINTPKT_SUPPORT */ #endif /* PRINTPKT_SUPPORT */
ccp_datainput, ccp_datainput,
1, 1,
#if PRINTPKT_SUPPORT
"CCP", "CCP",
"Compressed", "Compressed",
#endif /* PRINTPKT_SUPPORT */
#if PPP_OPTIONS #if PPP_OPTIONS
ccp_option_list, ccp_option_list,
NULL, NULL,

View File

@ -669,8 +669,10 @@ struct protent chap_protent = {
#endif /* PRINTPKT_SUPPORT */ #endif /* PRINTPKT_SUPPORT */
NULL, /* datainput */ NULL, /* datainput */
1, /* enabled_flag */ 1, /* enabled_flag */
#if PRINTPKT_SUPPORT
"CHAP", /* name */ "CHAP", /* name */
NULL, /* data_name */ NULL, /* data_name */
#endif /* PRINTPKT_SUPPORT */
#if PPP_OPTIONS #if PPP_OPTIONS
chap_option_list, chap_option_list,
NULL, /* check_options */ NULL, /* check_options */

View File

@ -120,8 +120,10 @@ struct protent eap_protent = {
#endif /* PRINTPKT_SUPPORT */ #endif /* PRINTPKT_SUPPORT */
NULL, /* process a received data packet */ NULL, /* process a received data packet */
1, /* protocol enabled */ 1, /* protocol enabled */
#if PRINTPKT_SUPPORT
"EAP", /* text name of protocol */ "EAP", /* text name of protocol */
NULL, /* text name of corresponding data protocol */ NULL, /* text name of corresponding data protocol */
#endif /* PRINTPKT_SUPPORT */
#if PPP_OPTIONS #if PPP_OPTIONS
eap_option_list, /* list of command-line options */ eap_option_list, /* list of command-line options */
NULL, /* check requested options; assign defaults */ NULL, /* check requested options; assign defaults */

View File

@ -116,8 +116,10 @@ struct protent ecp_protent = {
#endif /* PRINTPKT_SUPPORT */ #endif /* PRINTPKT_SUPPORT */
NULL, /* ecp_datainput, */ NULL, /* ecp_datainput, */
0, 0,
#if PRINTPKT_SUPPORT
"ECP", "ECP",
"Encrypted", "Encrypted",
#endif /* PRINTPKT_SUPPORT */
#if PPP_OPTIONS #if PPP_OPTIONS
ecp_option_list, ecp_option_list,
NULL, NULL,

View File

@ -281,8 +281,10 @@ struct protent ipcp_protent = {
#endif /* PRINTPKT_SUPPORT */ #endif /* PRINTPKT_SUPPORT */
NULL, NULL,
1, 1,
#if PRINTPKT_SUPPORT
"IPCP", "IPCP",
"IP", "IP",
#endif /* PRINTPKT_SUPPORT */
#if PPP_OPTIONS #if PPP_OPTIONS
ipcp_option_list, ipcp_option_list,
ip_check_options, ip_check_options,

View File

@ -283,8 +283,10 @@ struct protent lcp_protent = {
#endif /* PRINTPKT_SUPPORT */ #endif /* PRINTPKT_SUPPORT */
NULL, NULL,
1, 1,
#if PRINTPKT_SUPPORT
"LCP", "LCP",
NULL, NULL,
#endif /* PRINTPKT_SUPPORT */
#if PPP_OPTIONS #if PPP_OPTIONS
lcp_option_list, lcp_option_list,
NULL, NULL,

View File

@ -431,8 +431,10 @@ struct protent {
/* Process a received data packet */ /* Process a received data packet */
void (*datainput) __P((int unit, u_char *pkt, int len)); void (*datainput) __P((int unit, u_char *pkt, int len));
bool enabled_flag; /* 0 iff protocol is disabled */ bool enabled_flag; /* 0 iff protocol is disabled */
#if PRINTPKT_SUPPORT
char *name; /* Text name of protocol */ char *name; /* Text name of protocol */
char *data_name; /* Text name of corresponding data protocol */ char *data_name; /* Text name of corresponding data protocol */
#endif /* PRINTPKT_SUPPORT */
#if PPP_OPTIONS #if PPP_OPTIONS
option_t *options; /* List of command-line options */ option_t *options; /* List of command-line options */
/* Check requested options, assign defaults */ /* Check requested options, assign defaults */

View File

@ -103,8 +103,10 @@ struct protent pap_protent = {
#endif /* PRINTPKT_SUPPORT */ #endif /* PRINTPKT_SUPPORT */
NULL, NULL,
1, 1,
#if PRINTPKT_SUPPORT
"PAP", "PAP",
NULL, NULL,
#endif /* PRINTPKT_SUPPORT */
#if PPP_OPTIONS #if PPP_OPTIONS
pap_option_list, pap_option_list,
NULL, NULL,