From 8c9a4071f72fa8ec7410d2ec8d17d6bf845b1842 Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 13 Dec 2004 12:51:19 +0000 Subject: Implement an ``enable/disable echo'' option, defaults to off. This allows LCP ECHOs to be enabled independently of LQR reports. Note: This introduces a change in the default behaviour (search for lqr and echo in the man page). I'll update UPDATING to reflect this. PR: 74821 --- usr.sbin/ppp/lcp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr.sbin/ppp/lcp.c') diff --git a/usr.sbin/ppp/lcp.c b/usr.sbin/ppp/lcp.c index 5d550ed..0b4b884 100644 --- a/usr.sbin/ppp/lcp.c +++ b/usr.sbin/ppp/lcp.c @@ -218,6 +218,8 @@ lcp_ReportStatus(struct cmdargs const *arg) #endif prompt_Printf(arg->prompt, " LQR = %s\n", command_ShowNegval(lcp->cfg.lqr)); + prompt_Printf(arg->prompt, " LCP ECHO = %s\n", + lcp->cfg.echo ? "enabled" : "disabled"); prompt_Printf(arg->prompt, " PAP = %s\n", command_ShowNegval(lcp->cfg.pap)); prompt_Printf(arg->prompt, " PROTOCOMP = %s\n", @@ -272,6 +274,7 @@ lcp_Init(struct lcp *lcp, struct bundle *bundle, struct link *l, lcp->cfg.chap81 = NEG_ACCEPTED; #endif lcp->cfg.lqr = NEG_ACCEPTED; + lcp->cfg.echo = 0; lcp->cfg.pap = NEG_ACCEPTED; lcp->cfg.protocomp = NEG_ENABLED|NEG_ACCEPTED; *lcp->cfg.ident = '\0'; -- cgit v1.1