Revert last change and insure the driver can support other address families.

Pointed out by: ume, matusita
This commit is contained in:
Jonathan Lemon 2003-03-08 17:32:21 +00:00
parent e0e6419344
commit 06acad4aa4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111999

View File

@ -16,7 +16,10 @@
* $FreeBSD$
*/
#include "opt_atalk.h"
#include "opt_inet.h"
#include "opt_inet6.h"
#include "opt_ipx.h"
#include "opt_mac.h"
#include <sys/param.h>
@ -794,6 +797,21 @@ tunwrite(dev_t dev, struct uio *uio, int flag)
case AF_INET:
isr = NETISR_IP;
break;
#endif
#ifdef INET6
case AF_INET6:
isr = NETISR_IPV6;
break;
#endif
#ifdef IPX
case AF_IPX:
isr = NETISR_IPX;
break;
#endif
#ifdef NETATALK
case AF_APPLETALK:
isr = NETISR_ATALK2;
break;
#endif
default:
m_freem(m);