summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/fsm.c
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1997-12-15 22:44:59 +0000
committerbrian <brian@cvs.openbsd.org>1997-12-15 22:44:59 +0000
commite541f2807aed975b8fd01868cb0ca2954d485929 (patch)
tree8042bb48c2dcb99a152b1564f7aed2ea171b0248 /usr.sbin/ppp/fsm.c
parent663ebcdb374a129f4e61508b6a066b4b1c51fb8e (diff)
Allow random IP number allocation to peer.
Validate the peers suggested IP by attempting to make a routing table entry. Give up IPCP negotiation if the peer NAKs us with an unusable IP. Always SIOCDIFADDR then SIOCAIFADDR when configuring the tun device. Using SIOCSIFDSTADDR allows duplicate dst addresses (which we don't want)!!! Allow up to 200 interface names (was 50) (now that ppp can play server properly). Cosmetic: Log unexpected CCP packets in the CCP log rather than the ERROR log. Log unexpected Config Reqs in the appropriate LCP/IPCP/CCP log rather than the ERROR log. Log failed route additions and deletions with WARN, not TCPIP. Log the option id and length for unrecognised IPCP options. Change some .Sq to .Ar in the man page.
Diffstat (limited to 'usr.sbin/ppp/fsm.c')
-rw-r--r--usr.sbin/ppp/fsm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ppp/fsm.c b/usr.sbin/ppp/fsm.c
index 17bc691b012..6f6af4089c8 100644
--- a/usr.sbin/ppp/fsm.c
+++ b/usr.sbin/ppp/fsm.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: fsm.c,v 1.2 1997/12/06 12:08:56 brian Exp $
+ * $Id: fsm.c,v 1.3 1997/12/15 22:44:52 brian Exp $
*
* TODO:
* o Refer loglevel for log output
@@ -367,7 +367,8 @@ FsmRecvConfigReq(struct fsm * fp, struct fsmheader * lhp, struct mbuf * bp)
pfree(bp);
return;
case ST_CLOSING:
- LogPrintf(LogERROR, "Got ConfigReq while state = %d\n", fp->state);
+ LogPrintf(fp->LogLevel, "Error: Got ConfigReq while state = %d\n",
+ fp->state);
case ST_STOPPING:
pfree(bp);
return;