diff --git a/src/netif/ppp/ccp.c b/src/netif/ppp/ccp.c index 6c3aa63a..7bd65192 100644 --- a/src/netif/ppp/ccp.c +++ b/src/netif/ppp/ccp.c @@ -197,8 +197,10 @@ struct protent ccp_protent = { #endif /* PRINTPKT_SUPPORT */ ccp_datainput, 1, +#if PRINTPKT_SUPPORT "CCP", "Compressed", +#endif /* PRINTPKT_SUPPORT */ #if PPP_OPTIONS ccp_option_list, NULL, diff --git a/src/netif/ppp/chap-new.c b/src/netif/ppp/chap-new.c index fbb73da4..bb20d18b 100644 --- a/src/netif/ppp/chap-new.c +++ b/src/netif/ppp/chap-new.c @@ -669,8 +669,10 @@ struct protent chap_protent = { #endif /* PRINTPKT_SUPPORT */ NULL, /* datainput */ 1, /* enabled_flag */ +#if PRINTPKT_SUPPORT "CHAP", /* name */ NULL, /* data_name */ +#endif /* PRINTPKT_SUPPORT */ #if PPP_OPTIONS chap_option_list, NULL, /* check_options */ diff --git a/src/netif/ppp/eap.c b/src/netif/ppp/eap.c index 06aac356..e1542e4d 100644 --- a/src/netif/ppp/eap.c +++ b/src/netif/ppp/eap.c @@ -120,8 +120,10 @@ struct protent eap_protent = { #endif /* PRINTPKT_SUPPORT */ NULL, /* process a received data packet */ 1, /* protocol enabled */ +#if PRINTPKT_SUPPORT "EAP", /* text name of protocol */ NULL, /* text name of corresponding data protocol */ +#endif /* PRINTPKT_SUPPORT */ #if PPP_OPTIONS eap_option_list, /* list of command-line options */ NULL, /* check requested options; assign defaults */ diff --git a/src/netif/ppp/ecp.c b/src/netif/ppp/ecp.c index a8c7ce67..9b2fdabc 100644 --- a/src/netif/ppp/ecp.c +++ b/src/netif/ppp/ecp.c @@ -116,8 +116,10 @@ struct protent ecp_protent = { #endif /* PRINTPKT_SUPPORT */ NULL, /* ecp_datainput, */ 0, +#if PRINTPKT_SUPPORT "ECP", "Encrypted", +#endif /* PRINTPKT_SUPPORT */ #if PPP_OPTIONS ecp_option_list, NULL, diff --git a/src/netif/ppp/ipcp.c b/src/netif/ppp/ipcp.c index 40343ab0..1fb9652b 100644 --- a/src/netif/ppp/ipcp.c +++ b/src/netif/ppp/ipcp.c @@ -281,8 +281,10 @@ struct protent ipcp_protent = { #endif /* PRINTPKT_SUPPORT */ NULL, 1, +#if PRINTPKT_SUPPORT "IPCP", "IP", +#endif /* PRINTPKT_SUPPORT */ #if PPP_OPTIONS ipcp_option_list, ip_check_options, diff --git a/src/netif/ppp/lcp.c b/src/netif/ppp/lcp.c index 4f8f17cb..0768efdc 100644 --- a/src/netif/ppp/lcp.c +++ b/src/netif/ppp/lcp.c @@ -283,8 +283,10 @@ struct protent lcp_protent = { #endif /* PRINTPKT_SUPPORT */ NULL, 1, +#if PRINTPKT_SUPPORT "LCP", NULL, +#endif /* PRINTPKT_SUPPORT */ #if PPP_OPTIONS lcp_option_list, NULL, diff --git a/src/netif/ppp/pppd.h b/src/netif/ppp/pppd.h index 6bf117d4..91e88188 100644 --- a/src/netif/ppp/pppd.h +++ b/src/netif/ppp/pppd.h @@ -431,8 +431,10 @@ struct protent { /* Process a received data packet */ void (*datainput) __P((int unit, u_char *pkt, int len)); bool enabled_flag; /* 0 iff protocol is disabled */ +#if PRINTPKT_SUPPORT char *name; /* Text name of protocol */ char *data_name; /* Text name of corresponding data protocol */ +#endif /* PRINTPKT_SUPPORT */ #if PPP_OPTIONS option_t *options; /* List of command-line options */ /* Check requested options, assign defaults */ diff --git a/src/netif/ppp/upap.c b/src/netif/ppp/upap.c index 239eae11..298114fc 100644 --- a/src/netif/ppp/upap.c +++ b/src/netif/ppp/upap.c @@ -103,8 +103,10 @@ struct protent pap_protent = { #endif /* PRINTPKT_SUPPORT */ NULL, 1, +#if PRINTPKT_SUPPORT "PAP", NULL, +#endif /* PRINTPKT_SUPPORT */ #if PPP_OPTIONS pap_option_list, NULL,