diff options
Diffstat (limited to 'sys/net/if_tun.c')
| -rw-r--r-- | sys/net/if_tun.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 1cd1ad2a872c..b544f7574fcb 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -37,6 +37,7 @@ #include <sys/malloc.h> #include <net/if.h> +#include <net/if_types.h> #include <net/route.h> #include <net/intrq.h> @@ -119,6 +120,7 @@ tuncreate(dev) ifp->if_ioctl = tunifioctl; ifp->if_output = tunoutput; ifp->if_flags = IFF_POINTOPOINT | IFF_MULTICAST; + ifp->if_type = IFT_PPP; ifp->if_snd.ifq_maxlen = ifqmaxlen; ifp->if_softc = sc; if_attach(ifp); |
