diff options
author | brian <brian@FreeBSD.org> | 1998-08-09 16:41:01 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-08-09 16:41:01 +0000 |
commit | d7c49efe5b70d6f0c2c86d04c44e8b6dd7d90e60 (patch) | |
tree | 4bdb53977ddc3f1b0e7b2919a89d18b98f4bfc2a /usr.sbin | |
parent | 00d5b6a21323318be6e04a9ddc6d51bc2fbf8fb7 (diff) | |
download | FreeBSD-src-d7c49efe5b70d6f0c2c86d04c44e8b6dd7d90e60.zip FreeBSD-src-d7c49efe5b70d6f0c2c86d04c44e8b6dd7d90e60.tar.gz |
Use IFT_PPP from net/if_types.h rather than hard-coding it.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/tun.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ppp/tun.c b/usr.sbin/ppp/tun.c index af27bad..c1d021f 100644 --- a/usr.sbin/ppp/tun.c +++ b/usr.sbin/ppp/tun.c @@ -23,13 +23,14 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: tun.c,v 1.7 1998/05/21 21:48:52 brian Exp $ + * $Id: tun.c,v 1.8 1998/06/27 14:18:15 brian Exp $ */ #include <sys/types.h> #include <sys/socket.h> /* For IFF_ defines */ #include <net/if.h> /* For IFF_ defines */ #include <netinet/in.h> +#include <net/if_types.h> #include <net/if_tun.h> #include <netinet/in_systm.h> #include <netinet/ip.h> @@ -64,7 +65,7 @@ tun_configure(struct bundle *bundle, int mtu) { struct tuninfo info; - info.type = 23; + info.type = IFT_PPP; info.mtu = mtu; info.baudrate = bundle->ifp.Speed; #ifdef __OpenBSD__ |