diff options
author | brian <brian@FreeBSD.org> | 2004-12-13 12:51:19 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2004-12-13 12:51:19 +0000 |
commit | 8c9a4071f72fa8ec7410d2ec8d17d6bf845b1842 (patch) | |
tree | 577dd11d7204e0bb2b7151a1cfa1d4d08b701055 /usr.sbin/ppp/lcp.c | |
parent | 2bae195f481cb1c330f836c9ff2b7d0d3847c00e (diff) | |
download | FreeBSD-src-8c9a4071f72fa8ec7410d2ec8d17d6bf845b1842.zip FreeBSD-src-8c9a4071f72fa8ec7410d2ec8d17d6bf845b1842.tar.gz |
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
Diffstat (limited to 'usr.sbin/ppp/lcp.c')
-rw-r--r-- | usr.sbin/ppp/lcp.c | 3 |
1 files changed, 3 insertions, 0 deletions
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'; |