summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/vars.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-09-22 23:59:16 +0000
committerbrian <brian@FreeBSD.org>1997-09-22 23:59:16 +0000
commit3884570228b4fa8937f60dd6d2fcba459b3a17d3 (patch)
tree50b89e1bd1f71f2296e7205dab3ed03434607277 /usr.sbin/ppp/vars.h
parent21a8eb1d318f2fd4ee79da9aac7115e89b4bc033 (diff)
downloadFreeBSD-src-3884570228b4fa8937f60dd6d2fcba459b3a17d3.zip
FreeBSD-src-3884570228b4fa8937f60dd6d2fcba459b3a17d3.tar.gz
Don't allow accept/deny when it's not appropriate.
Log PAP/CHAP users in utmp & wtmp, allowing it to be avoided with "disable utmp"
Diffstat (limited to 'usr.sbin/ppp/vars.h')
-rw-r--r--usr.sbin/ppp/vars.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/ppp/vars.h b/usr.sbin/ppp/vars.h
index 9584177..6c8ffb3 100644
--- a/usr.sbin/ppp/vars.h
+++ b/usr.sbin/ppp/vars.h
@@ -15,7 +15,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: vars.h,v 1.26 1997/09/04 00:38:22 brian Exp $
+ * $Id: vars.h,v 1.27 1997/09/17 23:17:57 brian Exp $
*
* TODO:
*/
@@ -30,6 +30,7 @@ struct confdesc {
int myside, hisside;
};
+#define CONF_NONE -1
#define CONF_DISABLE 0
#define CONF_ENABLE 1
@@ -46,7 +47,8 @@ struct confdesc {
#define ConfProxy 7
#define ConfMSExt 8
#define ConfPasswdAuth 9
-#define MAXCONFS 10
+#define ConfUtmp 10
+#define MAXCONFS 11
#define Enabled(x) (pppConfs[x].myside & CONF_ENABLE)
#define Acceptable(x) (pppConfs[x].hisside & CONF_ACCEPT)
@@ -142,6 +144,7 @@ struct pppvars {
extern struct pppvars pppVars;
+int Utmp; /* Are we in /etc/utmp ? */
int ipInOctets, ipOutOctets, ipKeepAlive;
int ipConnectSecs, ipIdleSecs;
OpenPOWER on IntegriCloud