diff options
author | brian <brian@FreeBSD.org> | 2000-07-17 23:21:42 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-07-17 23:21:42 +0000 |
commit | e1b331a257e8d18b8345628f610b81766ba043cf (patch) | |
tree | dde722a550ab5fe3dc9c5be0fc24115120ddf373 /sys/net | |
parent | fa7c7acbf98a1fc07bfb99c6781d96fe9fa83830 (diff) | |
download | FreeBSD-src-e1b331a257e8d18b8345628f610b81766ba043cf.zip FreeBSD-src-e1b331a257e8d18b8345628f610b81766ba043cf.tar.gz |
Initialise ifnet::if_type
PR: 17873
Submitted by: Kensaku Masuda <greg@greg.rim.or.jp>
Diffstat (limited to 'sys/net')
-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 1cd1ad2..b544f75 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); |