From 44cae95d95ee193944b18befaaa6825f40b2109f Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Sun, 9 Aug 1998 16:41:01 +0000 Subject: [PATCH] Use IFT_PPP from net/if_types.h rather than hard-coding it. --- usr.sbin/ppp/tun.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ppp/tun.c b/usr.sbin/ppp/tun.c index af27badc653..c1d021f58a6 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 #include /* For IFF_ defines */ #include /* For IFF_ defines */ #include +#include #include #include #include @@ -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__