diff options
author | brian <brian@FreeBSD.org> | 1997-08-21 16:21:39 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-08-21 16:21:39 +0000 |
commit | 263a0e79cc4756de756f7812ae9239dfee01b6f5 (patch) | |
tree | 470b83e0d1dde5c3880dc714326a9154a6f12207 /usr.sbin/ppp/vars.h | |
parent | 4d5bf5e7506b847a254ed4a60c60cf849b36fb59 (diff) | |
download | FreeBSD-src-263a0e79cc4756de756f7812ae9239dfee01b6f5.zip FreeBSD-src-263a0e79cc4756de756f7812ae9239dfee01b6f5.tar.gz |
Add "set loopback on|off", defaulting to "on".
This tells ppp to loopback packets addressed to
the ppp interface IP coming *from* the tun
device.
This means that you can ping the tun interface IP
from inside :-)
Diffstat (limited to 'usr.sbin/ppp/vars.h')
-rw-r--r-- | usr.sbin/ppp/vars.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ppp/vars.h b/usr.sbin/ppp/vars.h index ae12495..4583a2a 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.22 1997/08/17 20:45:50 brian Exp $ + * $Id: vars.h,v 1.23 1997/08/20 23:47:53 brian Exp $ * * TODO: */ @@ -68,6 +68,7 @@ struct pppvars { int redial_timeout; /* Redial timeout value */ int redial_next_timeout; /* Redial next timeout value */ int dial_tries; /* Dial attempts before giving up, 0 == inf */ + int loopback; /* Turn around packets addressed to me */ char modem_dev[40]; /* Name of device / host:port */ char *base_modem_dev; /* Pointer to base of modem_dev */ int open_mode; /* LCP open mode */ @@ -118,6 +119,7 @@ struct pppvars { #define VarRedialTimeout pppVars.redial_timeout #define VarRedialNextTimeout pppVars.redial_next_timeout #define VarDialTries pppVars.dial_tries +#define VarLoopback pppVars.loopback #define VarTerm pppVars.termfp #define VarAliasHandlers pppVars.handler |