summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/defs.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/defs.c')
-rw-r--r--usr.sbin/ppp/defs.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/usr.sbin/ppp/defs.c b/usr.sbin/ppp/defs.c
new file mode 100644
index 0000000..be9134a
--- /dev/null
+++ b/usr.sbin/ppp/defs.c
@@ -0,0 +1,26 @@
+/*
+ * $Id: $
+ */
+
+#include <stdlib.h>
+
+#include "defs.h"
+
+int mode = MODE_INTER;
+int BGFiledes[2] = { -1, -1 };
+int modem = -1;
+int tun_in = -1;
+int tun_out = -1;
+int netfd = -1;
+char *dstsystem = NULL;
+
+void
+randinit()
+{
+ static int initdone;
+
+ if (!initdone) {
+ initdone = 1;
+ srandomdev();
+ }
+}
OpenPOWER on IntegriCloud