if_ed.c (11602) | if_ed.c (11819) |
---|---|
1/* 2 * Device driver for National Semiconductor DS8390/WD83C690 based ethernet 3 * adapters. By David Greenman, 29-April-1993 4 * 5 * Copyright (C) 1993, David Greenman. This software may be used, modified, 6 * copied, distributed, and sold, in both source and binary form provided 7 * that the above copyright and these terms are retained. Under no 8 * circumstances is the author responsible for the proper functioning 9 * of this software, nor does the author assume any responsibility 10 * for damages incurred with its use. 11 * 12 * Currently supports the Western Digital/SMC 8003 and 8013 series, 13 * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000, 14 * and a variety of similar clones. 15 * | 1/* 2 * Device driver for National Semiconductor DS8390/WD83C690 based ethernet 3 * adapters. By David Greenman, 29-April-1993 4 * 5 * Copyright (C) 1993, David Greenman. This software may be used, modified, 6 * copied, distributed, and sold, in both source and binary form provided 7 * that the above copyright and these terms are retained. Under no 8 * circumstances is the author responsible for the proper functioning 9 * of this software, nor does the author assume any responsibility 10 * for damages incurred with its use. 11 * 12 * Currently supports the Western Digital/SMC 8003 and 8013 series, 13 * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000, 14 * and a variety of similar clones. 15 * |
16 * $Id: if_ed.c,v 1.78 1995/10/13 19:47:40 wollman Exp $ | 16 * $Id: if_ed.c,v 1.79 1995/10/21 00:55:23 phk Exp $ |
17 */ 18 19#include "ed.h" 20#include "bpfilter.h" 21 22#include <sys/param.h> 23#include <sys/systm.h> 24#include <sys/errno.h> --- 10 unchanged lines hidden (view full) --- 35#ifdef INET 36#include <netinet/in.h> 37#include <netinet/in_systm.h> 38#include <netinet/in_var.h> 39#include <netinet/ip.h> 40#include <netinet/if_ether.h> 41#endif 42 | 17 */ 18 19#include "ed.h" 20#include "bpfilter.h" 21 22#include <sys/param.h> 23#include <sys/systm.h> 24#include <sys/errno.h> --- 10 unchanged lines hidden (view full) --- 35#ifdef INET 36#include <netinet/in.h> 37#include <netinet/in_systm.h> 38#include <netinet/in_var.h> 39#include <netinet/ip.h> 40#include <netinet/if_ether.h> 41#endif 42 |
43#ifdef IPX 44#include <netipx/ipx.h> 45#include <netipx/ipx_if.h> 46#endif 47 |
|
43#ifdef NS 44#include <netns/ns.h> 45#include <netns/ns_if.h> 46#endif 47 48#if NBPFILTER > 0 49#include <net/bpf.h> 50#include <net/bpfdesc.h> --- 2200 unchanged lines hidden (view full) --- 2251 2252 switch (ifa->ifa_addr->sa_family) { 2253#ifdef INET 2254 case AF_INET: 2255 ed_init(ifp->if_unit); /* before arpwhohas */ 2256 arp_ifinit((struct arpcom *)ifp, ifa); 2257 break; 2258#endif | 48#ifdef NS 49#include <netns/ns.h> 50#include <netns/ns_if.h> 51#endif 52 53#if NBPFILTER > 0 54#include <net/bpf.h> 55#include <net/bpfdesc.h> --- 2200 unchanged lines hidden (view full) --- 2256 2257 switch (ifa->ifa_addr->sa_family) { 2258#ifdef INET 2259 case AF_INET: 2260 ed_init(ifp->if_unit); /* before arpwhohas */ 2261 arp_ifinit((struct arpcom *)ifp, ifa); 2262 break; 2263#endif |
2259#ifdef NS | 2264#ifdef IPX 2265 /* 2266 * XXX - This code is probably wrong 2267 */ 2268 case AF_IPX: 2269 { 2270 register struct ipx_addr *ina = &(IA_SIPX(ifa)->sipx_addr); |
2260 | 2271 |
2261 /* 2262 * XXX - This code is probably wrong 2263 */ | 2272 if (ipx_nullhost(*ina)) 2273 ina->x_host = 2274 *(union ipx_host *) (sc->arpcom.ac_enaddr); 2275 else { 2276 bcopy((caddr_t) ina->x_host.c_host, 2277 (caddr_t) sc->arpcom.ac_enaddr, 2278 sizeof(sc->arpcom.ac_enaddr)); 2279 } 2280 2281 /* 2282 * Set new address 2283 */ 2284 ed_init(ifp->if_unit); 2285 break; 2286 } 2287#endif 2288#ifdef NS 2289 /* 2290 * XXX - This code is probably wrong 2291 */ |
2264 case AF_NS: 2265 { 2266 register struct ns_addr *ina = &(IA_SNS(ifa)->sns_addr); 2267 2268 if (ns_nullhost(*ina)) 2269 ina->x_host = 2270 *(union ns_host *) (sc->arpcom.ac_enaddr); 2271 else { --- 550 unchanged lines hidden --- | 2292 case AF_NS: 2293 { 2294 register struct ns_addr *ina = &(IA_SNS(ifa)->sns_addr); 2295 2296 if (ns_nullhost(*ina)) 2297 ina->x_host = 2298 *(union ns_host *) (sc->arpcom.ac_enaddr); 2299 else { --- 550 unchanged lines hidden --- |