Revert last change and insure the driver can support other address families.
Pointed out by: ume, matusita
This commit is contained in:
parent
3d6036b6f4
commit
95fa81544f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user