aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/ccp.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1998-03-24 18:47:32 +0000
committerBrian Somers <brian@FreeBSD.org>1998-03-24 18:47:32 +0000
commit1e991daad5c5de62b52ba8d458104aca32e69c27 (patch)
treeeb28dc5f13ba6c0c3fa6f4227896d9665b48f5d3 /usr.sbin/ppp/ccp.c
parent6c56b953f711a2828da9f3ba9e829dff034f402d (diff)
downloadsrc-1e991daad5c5de62b52ba8d458104aca32e69c27.tar.gz
src-1e991daad5c5de62b52ba8d458104aca32e69c27.zip
Remove some more globals:
o int modem was unused. o StateNames[] is now accessed via State2Nam() o ipKeepAlive is no more. As a result, we must call FilterCheck() twice if we're doing TCP/IP logging (once when we queue and log the packet and once when we transmit it and need to know if the idle timer should be reset), but this won't be the case in normal life.
Notes
Notes: svn path=/cvs2svn/branches/MP/; revision=34883
Diffstat (limited to 'usr.sbin/ppp/ccp.c')
-rw-r--r--usr.sbin/ppp/ccp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ccp.c b/usr.sbin/ppp/ccp.c
index 071fb22cf8ad..00821d45c7a3 100644
--- a/usr.sbin/ppp/ccp.c
+++ b/usr.sbin/ppp/ccp.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: ccp.c,v 1.30.2.26 1998/03/20 19:46:41 brian Exp $
+ * $Id: ccp.c,v 1.30.2.27 1998/03/20 19:47:44 brian Exp $
*
* TODO:
* o Support other compression protocols
@@ -135,7 +135,7 @@ ccp_ReportStatus(struct cmdargs const *arg)
struct ccp *ccp = arg->cx ? &arg->cx->ccp : bundle2ccp(arg->bundle, NULL);
prompt_Printf(&prompt, "%s [%s]\n", ccp->fsm.name,
- StateNames[ccp->fsm.state]);
+ State2Nam(ccp->fsm.state));
prompt_Printf(&prompt, "My protocol = %s, His protocol = %s\n",
protoname(ccp->my_proto), protoname(ccp->his_proto));
prompt_Printf(&prompt, "Output: %ld --> %ld, Input: %ld --> %ld\n",