diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-06-08 06:55:34 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-06-08 06:55:34 +0000 |
commit | 41df6542fdf86f5037bbbc29ea0fcd3bdc7a7e11 (patch) | |
tree | a842c1b204f8e0c8e3be34792eb5686d4558df5b /sys/net/if_ethersubr.c | |
parent | fe275d4e03429afd2f9ebc4f26fb147af2157bcf (diff) |
bye bye netns (and a few leftover DECNET bits while here)
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r-- | sys/net/if_ethersubr.c | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index e4995d3ffb8..e7a5b620944 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ethersubr.c,v 1.95 2005/06/07 07:09:42 camield Exp $ */ +/* $OpenBSD: if_ethersubr.c,v 1.96 2005/06/08 06:55:33 henning Exp $ */ /* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */ /* @@ -141,11 +141,6 @@ didn't get a copy, you may request one from <license@ipv6.nrl.navy.mil>. #include <netinet6/nd6.h> #endif -#ifdef NS -#include <netns/ns.h> -#include <netns/ns_if.h> -#endif - #ifdef IPX #include <netipx/ipx.h> #include <netipx/ipx_if.h> @@ -198,21 +193,6 @@ ether_ioctl(ifp, arp, cmd, data) /* Nothing to do. */ break; #endif /* NETATALK */ -#ifdef NS - /* XXX - This code is probably wrong. */ - case AF_NS: - { - struct ns_addr *ina = &IA_SNS(ifa)->sns_addr; - - if (ns_nullhost(*ina)) - ina->x_host = - *(union ns_host *)(arp->ac_enaddr); - else - bcopy(ina->x_host.c_host, - arp->ac_enaddr, sizeof(arp->ac_enaddr)); - break; - } -#endif /* NS */ } break; default: @@ -314,18 +294,6 @@ ether_output(ifp0, m0, dst, rt0) etype = htons(ETHERTYPE_IPV6); break; #endif -#ifdef NS - case AF_NS: - etype = htons(ETHERTYPE_NS); - bcopy((caddr_t)&(((struct sockaddr_ns *)dst)->sns_addr.x_host), - (caddr_t)edst, sizeof(edst)); - if (!bcmp((caddr_t)edst, (caddr_t)&ns_thishost, sizeof(edst))) - return (looutput(ifp, m, dst, rt)); - /* If broadcasting on a simplex interface, loopback a copy */ - if ((m->m_flags & M_BCAST) && (ifp->if_flags & IFF_SIMPLEX)) - mcopy = m_copy(m, 0, (int)M_COPYALL); - break; -#endif #ifdef IPX case AF_IPX: etype = htons(ETHERTYPE_IPX); @@ -715,12 +683,6 @@ decapsulate: inq = &ipxintrq; break; #endif -#ifdef NS - case ETHERTYPE_NS: - schednetisr(NETISR_NS); - inq = &nsintrq; - break; -#endif #ifdef NETATALK case ETHERTYPE_AT: schednetisr(NETISR_ATALK); |