if_fe.c (11460) | if_fe.c (11819) |
---|---|
1/* 2 * All Rights Reserved, Copyright (C) Fujitsu Limited 1995 3 * 4 * This software may be used, modified, copied, distributed, and sold, in 5 * both source and binary form provided that the above copyright, these 6 * terms and the following disclaimer are retained. The name of the author 7 * and/or the contributor may not be used to endorse or promote products 8 * derived from this software without specific prior written permission. --- 58 unchanged lines hidden (view full) --- 67#ifdef INET 68#include <netinet/in.h> 69#include <netinet/in_systm.h> 70#include <netinet/in_var.h> 71#include <netinet/ip.h> 72#include <netinet/if_ether.h> 73#endif 74 | 1/* 2 * All Rights Reserved, Copyright (C) Fujitsu Limited 1995 3 * 4 * This software may be used, modified, copied, distributed, and sold, in 5 * both source and binary form provided that the above copyright, these 6 * terms and the following disclaimer are retained. The name of the author 7 * and/or the contributor may not be used to endorse or promote products 8 * derived from this software without specific prior written permission. --- 58 unchanged lines hidden (view full) --- 67#ifdef INET 68#include <netinet/in.h> 69#include <netinet/in_systm.h> 70#include <netinet/in_var.h> 71#include <netinet/ip.h> 72#include <netinet/if_ether.h> 73#endif 74 |
75#ifdef IPX 76#include <netipx/ipx.h> 77#include <netipx/ipx_if.h> 78#endif 79 |
|
75#ifdef NS 76#include <netns/ns.h> 77#include <netns/ns_if.h> 78#endif 79 80#if NBPFILTER > 0 81#include <net/bpf.h> 82#include <net/bpfdesc.h> --- 1929 unchanged lines hidden (view full) --- 2012 2013 switch (ifa->ifa_addr->sa_family) { 2014#ifdef INET 2015 case AF_INET: 2016 fe_init( sc->sc_unit ); /* before arpwhohas */ 2017 arp_ifinit( &sc->arpcom, ifa ); 2018 break; 2019#endif | 80#ifdef NS 81#include <netns/ns.h> 82#include <netns/ns_if.h> 83#endif 84 85#if NBPFILTER > 0 86#include <net/bpf.h> 87#include <net/bpfdesc.h> --- 1929 unchanged lines hidden (view full) --- 2017 2018 switch (ifa->ifa_addr->sa_family) { 2019#ifdef INET 2020 case AF_INET: 2021 fe_init( sc->sc_unit ); /* before arpwhohas */ 2022 arp_ifinit( &sc->arpcom, ifa ); 2023 break; 2024#endif |
2025#ifdef IPX 2026 2027 /* 2028 * XXX - This code is probably wrong 2029 */ 2030 case AF_IPX: 2031 { 2032 register struct ipx_addr *ina 2033 = &(IA_SIPX(ifa)->sipx_addr); 2034 2035 if (ipx_nullhost(*ina)) 2036 ina->x_host = 2037 *(union ipx_host *) (sc->sc_enaddr); 2038 else { 2039 bcopy((caddr_t) ina->x_host.c_host, 2040 (caddr_t) sc->sc_enaddr, 2041 sizeof(sc->sc_enaddr)); 2042 } 2043 2044 /* 2045 * Set new address 2046 */ 2047 fe_init(sc->sc_unit); 2048 break; 2049 } 2050#endif |
|
2020#ifdef NS 2021 2022 /* 2023 * XXX - This code is probably wrong 2024 */ 2025 case AF_NS: 2026 { 2027 register struct ns_addr *ina --- 696 unchanged lines hidden --- | 2051#ifdef NS 2052 2053 /* 2054 * XXX - This code is probably wrong 2055 */ 2056 case AF_NS: 2057 { 2058 register struct ns_addr *ina --- 696 unchanged lines hidden --- |