Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Initialize interface type to IFT_TUNNEL as suggested...



details:   https://anonhg.NetBSD.org/src/rev/490c4136d4ad
branches:  trunk
changeset: 566586:490c4136d4ad
user:      tron <tron%NetBSD.org@localhost>
date:      Thu May 13 11:31:09 2004 +0000

description:
Initialize interface type to IFT_TUNNEL as suggested by Erik ?ngg?rd
in PR kern/25555.

diffstat:

 sys/net/if_tun.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 81a1b1e571d0 -r 490c4136d4ad sys/net/if_tun.c
--- a/sys/net/if_tun.c  Thu May 13 11:29:40 2004 +0000
+++ b/sys/net/if_tun.c  Thu May 13 11:31:09 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tun.c,v 1.68 2004/03/01 13:54:02 tron Exp $ */
+/*     $NetBSD: if_tun.c,v 1.69 2004/05/13 11:31:09 tron Exp $ */
 
 /*
  * Copyright (c) 1988, Julian Onions <jpo%cs.nott.ac.uk@localhost>
@@ -15,7 +15,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.68 2004/03/01 13:54:02 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tun.c,v 1.69 2004/05/13 11:31:09 tron Exp $");
 
 #include "tun.h"
 
@@ -41,7 +41,7 @@
 #include <machine/cpu.h>
 
 #include <net/if.h>
-#include <net/if_ether.h>
+#include <net/if_types.h>
 #include <net/netisr.h>
 #include <net/route.h>
 
@@ -155,6 +155,7 @@
        ifp->if_start = tunstart;
 #endif
        ifp->if_flags = IFF_POINTOPOINT;
+       ifp->if_type = IFT_TUNNEL;
        ifp->if_snd.ifq_maxlen = ifqmaxlen;
        ifp->if_collisions = 0;
        ifp->if_ierrors = 0;



Home | Main Index | Thread Index | Old Index