Deleted Added
full compact
if_ie.c (11460) if_ie.c (11819)
1/*-
2 * Copyright (c) 1992, 1993, University of Vermont and State
3 * Agricultural College.
4 * Copyright (c) 1992, 1993, Garrett A. Wollman.
5 *
6 * Portions:
7 * Copyright (c) 1990, 1991, William F. Jolitz
8 * Copyright (c) 1990, The Regents of the University of California

--- 29 unchanged lines hidden (view full) ---

38 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
39 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
40 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
41 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
42 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
43 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
44 * SUCH DAMAGE.
45 *
1/*-
2 * Copyright (c) 1992, 1993, University of Vermont and State
3 * Agricultural College.
4 * Copyright (c) 1992, 1993, Garrett A. Wollman.
5 *
6 * Portions:
7 * Copyright (c) 1990, 1991, William F. Jolitz
8 * Copyright (c) 1990, The Regents of the University of California

--- 29 unchanged lines hidden (view full) ---

38 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
39 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
40 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
41 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
42 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
43 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
44 * SUCH DAMAGE.
45 *
46 * $Id: if_ie.c,v 1.26 1995/09/19 18:55:09 bde Exp $
46 * $Id: if_ie.c,v 1.27 1995/10/13 19:47:47 wollman Exp $
47 */
48
49/*
50 * Intel 82586 Ethernet chip
51 * Register, bit, and structure definitions.
52 *
53 * Written by GAW with reference to the Clarkson Packet Driver code for this
54 * chip written by Russ Nelson and others.

--- 73 unchanged lines hidden (view full) ---

128#ifdef INET
129#include <netinet/in.h>
130#include <netinet/in_systm.h>
131#include <netinet/in_var.h>
132#include <netinet/ip.h>
133#include <netinet/if_ether.h>
134#endif
135
47 */
48
49/*
50 * Intel 82586 Ethernet chip
51 * Register, bit, and structure definitions.
52 *
53 * Written by GAW with reference to the Clarkson Packet Driver code for this
54 * chip written by Russ Nelson and others.

--- 73 unchanged lines hidden (view full) ---

128#ifdef INET
129#include <netinet/in.h>
130#include <netinet/in_systm.h>
131#include <netinet/in_var.h>
132#include <netinet/ip.h>
133#include <netinet/if_ether.h>
134#endif
135
136#ifdef IPX
137#include <netipx/ipx.h>
138#include <netipx/ipx_if.h>
139#endif
140
136#ifdef NS
137#include <netns/ns.h>
138#include <netns/ns_if.h>
139#endif
140
141#include <machine/clock.h>
142
143#include <i386/isa/isa.h>

--- 1742 unchanged lines hidden (view full) ---

1886 switch(ifa->ifa_addr->sa_family) {
1887#ifdef INET
1888 case AF_INET:
1889 ieinit(ifp->if_unit);
1890 arp_ifinit((struct arpcom *)ifp, ifa);
1891 break;
1892#endif /* INET */
1893
141#ifdef NS
142#include <netns/ns.h>
143#include <netns/ns_if.h>
144#endif
145
146#include <machine/clock.h>
147
148#include <i386/isa/isa.h>

--- 1742 unchanged lines hidden (view full) ---

1891 switch(ifa->ifa_addr->sa_family) {
1892#ifdef INET
1893 case AF_INET:
1894 ieinit(ifp->if_unit);
1895 arp_ifinit((struct arpcom *)ifp, ifa);
1896 break;
1897#endif /* INET */
1898
1899#ifdef IPX
1900 /* This magic copied from if_is.c; I don't use XNS, so I have no
1901 * way of telling if this actually works or not.
1902 */
1903 case AF_IPX:
1904 {
1905 struct ipx_addr *ina = &(IA_SIPX(ifa)->sipx_addr);
1906
1907 if(ipx_nullhost(*ina)) {
1908 ina->x_host = *(union ipx_host *)(ie->arpcom.ac_enaddr);
1909 } else {
1910 ifp->if_flags &= ~IFF_RUNNING;
1911 bcopy((caddr_t)ina->x_host.c_host,
1912 (caddr_t)ie->arpcom.ac_enaddr,
1913 sizeof ie->arpcom.ac_enaddr);
1914 }
1915
1916 ieinit(ifp->if_unit);
1917 }
1918 break;
1919#endif /* IPX */
1920
1894#ifdef NS
1895 /* This magic copied from if_is.c; I don't use XNS, so I have no
1896 * way of telling if this actually works or not.
1897 */
1898 case AF_NS:
1899 {
1900 struct ns_addr *ina = &(IA_SNS(ifa)->sns_addr);
1901

--- 117 unchanged lines hidden ---
1921#ifdef NS
1922 /* This magic copied from if_is.c; I don't use XNS, so I have no
1923 * way of telling if this actually works or not.
1924 */
1925 case AF_NS:
1926 {
1927 struct ns_addr *ina = &(IA_SNS(ifa)->sns_addr);
1928

--- 117 unchanged lines hidden ---