summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/defs.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-05-28 23:17:51 +0000
committerbrian <brian@FreeBSD.org>1998-05-28 23:17:51 +0000
commite0d8cc391d650e6b69d5d77af50a002041522151 (patch)
treee3cc3229d89e0fd28c03dea90790a87b1f1bcfe6 /usr.sbin/ppp/defs.h
parentf320a1dcb71e3195a3a9ab924dd4f60db4c3ac53 (diff)
downloadFreeBSD-src-e0d8cc391d650e6b69d5d77af50a002041522151.zip
FreeBSD-src-e0d8cc391d650e6b69d5d77af50a002041522151.tar.gz
o #define the name "tun" in defs.h against the future possibility
of supporting architectures with different device names. o Close /dev/tunX when destroying the bundle. o Don't forget to close the parent end of the pipe in the child process when exec'ing a program from a chat script. o If we close our controlling terminal, ditch the current session with it, allowing getty(8) (or whatever) to regain control. o After transferring our controlling terminal descriptor to another ppp instance, we now fork a new ppp to continue where we left off, transferring ownership of all uucp locks and the /var/run/tunX.pid file. Meanwhile the parent closes all file descriptors, defaults all signals and does a pause() to wait for a HUP after the transferred descriptor is finally closed. We don't run /bin/cat any more (again!). Suggested by: bde TODO: It seems clocal devices need their pause()d session leader to be given a manual HUP, as closing the last open descriptor doesn't do the job.
Diffstat (limited to 'usr.sbin/ppp/defs.h')
-rw-r--r--usr.sbin/ppp/defs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/defs.h b/usr.sbin/ppp/defs.h
index 6f39ad6..877b7dd 100644
--- a/usr.sbin/ppp/defs.h
+++ b/usr.sbin/ppp/defs.h
@@ -15,7 +15,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: defs.h,v 1.29.2.18 1998/05/15 23:58:22 brian Exp $
+ * $Id: defs.h,v 1.30 1998/05/21 21:45:05 brian Exp $
*
* TODO:
*/
@@ -33,8 +33,8 @@
#define _PATH_PPP "/etc/ppp"
-#define TUN_PREFIX "/dev/tun" /* tunnel device prefix */
-#define CATPROG "/bin/cat" /* Multilink pipe program name */
+#define TUN_NAME "tun"
+#define TUN_PREFIX (_PATH_DEV TUN_NAME) /* /dev/tun */
#define MODEM_SPEED B38400 /* tty speed */
#define SERVER_PORT 3000 /* Base server port no. */
OpenPOWER on IntegriCloud