*/
#ifndef lint
-static char rcsid[] = "$Id: auth.c,v 1.11 1994/10/22 11:54:04 paulus Exp $";
+static char rcsid[] = "$Id: auth.c,v 1.12 1994/10/24 04:31:11 paulus Exp $";
#endif
#include <stdio.h>
#define TRUE 1
/* Records which authentication operations haven't completed yet. */
-static int auth_pending[N_PPP];
+static int auth_pending[NUM_PPP];
static int logged_in;
-static struct wordlist *addresses[N_PPP];
+static struct wordlist *addresses[NUM_PPP];
/* Bits in auth_pending[] */
#define UPAP_WITHPEER 1
*/
#ifndef lint
-static char rcsid[] = "$Id: ccp.c,v 1.5 1994/09/21 06:47:37 paulus Exp $";
+static char rcsid[] = "$Id: ccp.c,v 1.6 1994/10/24 04:31:11 paulus Exp $";
#endif
#include <syslog.h>
#include "fsm.h"
#include "ccp.h"
-fsm ccp_fsm[N_PPP];
-ccp_options ccp_wantoptions[N_PPP]; /* what to request the peer to use */
-ccp_options ccp_gotoptions[N_PPP]; /* what the peer agreed to do */
-ccp_options ccp_allowoptions[N_PPP]; /* what we'll agree to do */
-ccp_options ccp_hisoptions[N_PPP]; /* what we agreed to do */
+fsm ccp_fsm[NUM_PPP];
+ccp_options ccp_wantoptions[NUM_PPP]; /* what to request the peer to use */
+ccp_options ccp_gotoptions[NUM_PPP]; /* what the peer agreed to do */
+ccp_options ccp_allowoptions[NUM_PPP]; /* what we'll agree to do */
+ccp_options ccp_hisoptions[NUM_PPP]; /* what we agreed to do */
/*
* Callbacks for fsm code.
/*
* Local state (mainly for handling reset-reqs and reset-acks
*/
-static int ccp_localstate[N_PPP];
+static int ccp_localstate[NUM_PPP];
#define RACK_PENDING 1 /* waiting for reset-ack */
#define RREQ_REPEAT 2 /* send another reset-req if no reset-ack */
*/
#ifndef lint
-static char rcsid[] = "$Id: chap.c,v 1.5 1994/10/22 11:54:04 paulus Exp $";
+static char rcsid[] = "$Id: chap.c,v 1.6 1994/10/24 04:31:11 paulus Exp $";
#endif
/*
#include "chap.h"
#include "md5.h"
-chap_state chap[N_PPP]; /* CHAP state; one for each unit */
+chap_state chap[NUM_PPP]; /* CHAP state; one for each unit */
static void ChapChallengeTimeout __P((caddr_t));
static void ChapResponseTimeout __P((caddr_t));
*/
#ifndef lint
-static char rcsid[] = "$Id: fsm.c,v 1.6 1994/10/22 11:54:04 paulus Exp $";
+static char rcsid[] = "$Id: fsm.c,v 1.7 1994/10/24 04:31:11 paulus Exp $";
#endif
/*
#define PROTO_NAME(f) ((f)->callbacks->proto_name)
-int peer_mru[N_PPP];
+int peer_mru[NUM_PPP];
/*
*/
#ifndef lint
-static char rcsid[] = "$Id: ipcp.c,v 1.13 1994/10/22 11:54:04 paulus Exp $";
+static char rcsid[] = "$Id: ipcp.c,v 1.14 1994/10/24 04:31:11 paulus Exp $";
#endif
/*
#include "pathnames.h"
/* global vars */
-ipcp_options ipcp_wantoptions[N_PPP]; /* Options that we want to request */
-ipcp_options ipcp_gotoptions[N_PPP]; /* Options that peer ack'd */
-ipcp_options ipcp_allowoptions[N_PPP]; /* Options we allow peer to request */
-ipcp_options ipcp_hisoptions[N_PPP]; /* Options that we ack'd */
+ipcp_options ipcp_wantoptions[NUM_PPP]; /* Options that we want to request */
+ipcp_options ipcp_gotoptions[NUM_PPP]; /* Options that peer ack'd */
+ipcp_options ipcp_allowoptions[NUM_PPP]; /* Options we allow peer to request */
+ipcp_options ipcp_hisoptions[NUM_PPP]; /* Options that we ack'd */
/* local vars */
-static int cis_received[N_PPP]; /* # Conf-Reqs received */
+static int cis_received[NUM_PPP]; /* # Conf-Reqs received */
/*
* Callbacks for fsm code. (CI = Configuration Information)
static void ipcp_down __P((fsm *)); /* We're DOWN */
static void ipcp_script __P((fsm *, char *)); /* Run an up/down script */
-fsm ipcp_fsm[N_PPP]; /* IPCP fsm structure */
+fsm ipcp_fsm[NUM_PPP]; /* IPCP fsm structure */
static fsm_callbacks ipcp_callbacks = { /* IPCP callback routines */
ipcp_resetci, /* Reset our Configuration Information */
*/
#ifndef lint
-static char rcsid[] = "$Id: lcp.c,v 1.14 1994/09/21 06:47:37 paulus Exp $";
+static char rcsid[] = "$Id: lcp.c,v 1.15 1994/10/24 04:31:11 paulus Exp $";
#endif
/*
#endif
/* global vars */
-fsm lcp_fsm[N_PPP]; /* LCP fsm structure (global)*/
-lcp_options lcp_wantoptions[N_PPP]; /* Options that we want to request */
-lcp_options lcp_gotoptions[N_PPP]; /* Options that peer ack'd */
-lcp_options lcp_allowoptions[N_PPP]; /* Options we allow peer to request */
-lcp_options lcp_hisoptions[N_PPP]; /* Options that we ack'd */
-u_int32_t xmit_accm[N_PPP][8]; /* extended transmit ACCM */
+fsm lcp_fsm[NUM_PPP]; /* LCP fsm structure (global)*/
+lcp_options lcp_wantoptions[NUM_PPP]; /* Options that we want to request */
+lcp_options lcp_gotoptions[NUM_PPP]; /* Options that peer ack'd */
+lcp_options lcp_allowoptions[NUM_PPP]; /* Options we allow peer to request */
+lcp_options lcp_hisoptions[NUM_PPP]; /* Options that we ack'd */
+u_int32_t xmit_accm[NUM_PPP][8]; /* extended transmit ACCM */
static u_int32_t lcp_echos_pending = 0; /* Number of outstanding echo msgs */
static u_int32_t lcp_echo_number = 0; /* ID number of next echo frame */
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: pppd.h,v 1.5 1994/09/21 06:47:37 paulus Exp $
+ * $Id: pppd.h,v 1.6 1994/10/24 04:31:11 paulus Exp $
*/
/*
#include <sys/types.h> /* for u_int32_t, if defined */
#include <net/ppp_defs.h>
-#define N_PPP 1 /* One PPP interface supported (per process) */
+#define NUM_PPP 1 /* One PPP interface supported (per process) */
/*
* Limits.
void establish_ppp (void)
{
- int pppdisc = N_PPP;
+ int pppdisc = NUM_PPP;
int sig = SIGIO;
if (ioctl(fd, TIOCEXCL, 0) < 0) {
*/
#ifndef lint
-static char rcsid[] = "$Id: upap.c,v 1.4 1994/10/22 11:54:04 paulus Exp $";
+static char rcsid[] = "$Id: upap.c,v 1.5 1994/10/24 04:31:11 paulus Exp $";
#endif
/*
#include "upap.h"
-upap_state upap[N_PPP]; /* UPAP state; one for each unit */
+upap_state upap[NUM_PPP]; /* UPAP state; one for each unit */
static void upap_timeout __P((caddr_t));