summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoramurai <amurai@FreeBSD.org>1995-01-31 06:34:53 +0000
committeramurai <amurai@FreeBSD.org>1995-01-31 06:34:53 +0000
commitd3834970daeab5369b635ae8749ebba7f793199e (patch)
tree501b5987a50b3cb8596069ae9fd08d459166abf5 /sys
parentac12d39d2e2ec9e2f8ff1a33ce6a46a99f62e186 (diff)
downloadFreeBSD-src-d3834970daeab5369b635ae8749ebba7f793199e.zip
FreeBSD-src-d3834970daeab5369b635ae8749ebba7f793199e.tar.gz
Add Tunnel devcie for ppp (iijppp)
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/i386/conf.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/sys/i386/i386/conf.c b/sys/i386/i386/conf.c
index 13b4921..f2707d1 100644
--- a/sys/i386/i386/conf.c
+++ b/sys/i386/i386/conf.c
@@ -41,7 +41,7 @@
* SUCH DAMAGE.
*
* from: @(#)conf.c 5.8 (Berkeley) 5/12/91
- * $Id: conf.c,v 1.54 1995/01/23 02:52:20 phk Exp $
+ * $Id: conf.c,v 1.55 1995/01/25 20:57:32 jmz Exp $
*/
#include <sys/param.h>
@@ -735,6 +735,22 @@ d_ioctl_t joyioctl;
#define joyioctl (d_ioctl_t *)enxio
#endif
+#include "tun.h"
+#if NTUN > 0
+d_open_t tunopen;
+d_close_t tunclose;
+d_rdwr_t tunread, tunwrite;
+d_ioctl_t tunioctl;
+d_select_t tunselect;
+#else
+#define tunopen (d_open_t *)enxio
+#define tunclose (d_close_t *)enxio
+#define tunread (d_rdwr_t *)enxio
+#define tunwrite (d_rdwr_t *)enxio
+#define tunioctl (d_ioctl_t *)enxio
+#define tunselect (d_select_t *)enxio
+#endif
+
/* open, close, read, write, ioctl, stop, reset, ttys, select, mmap, strat */
struct cdevsw cdevsw[] =
{
@@ -905,6 +921,9 @@ struct cdevsw cdevsw[] =
{ joyopen, joyclose, joyread, nowrite, /*51*/
joyioctl, nostop, nullreset, NULL, /*joystick */
seltrue, nommap, NULL},
+ { tunopen, tunclose, tunread, tunwrite, /*52*/
+ tunioctl, nostop, nullreset, NULL, /* tunnel */
+ tunselect, nommap, NULL },
};
int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);
OpenPOWER on IntegriCloud