The tun driver is INET only. Don't pretend to support other address families.

Sponsored by: DARPA, NAI Labs
This commit is contained in:
Jonathan Lemon 2003-03-08 16:26:34 +00:00
parent 8c90439d70
commit e0e6419344

View File

@ -794,31 +794,6 @@ 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
#ifdef NATM
case AF_NATM:
isr = NETISR_NATM;
break;
#endif
#ifdef ATM_CORE
case AF_ATM:
isr = NETISR_ATM;
break;
#endif
default:
m_freem(m);