Deleted Added
full compact
if_ep.c (11460) if_ep.c (11819)
1/*
2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

33/*
34 * Modified from the FreeBSD 1.1.5.1 version by:
35 * Andres Vega Garcia
36 * INRIA - Sophia Antipolis, France
37 * avega@sophia.inria.fr
38 */
39
40/*
1/*
2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

33/*
34 * Modified from the FreeBSD 1.1.5.1 version by:
35 * Andres Vega Garcia
36 * INRIA - Sophia Antipolis, France
37 * avega@sophia.inria.fr
38 */
39
40/*
41 * $Id: if_ep.c,v 1.30 1995/08/28 12:01:17 guido Exp $
41 * $Id: if_ep.c,v 1.31 1995/10/13 19:47:44 wollman Exp $
42 *
43 * Promiscuous mode added and interrupt logic slightly changed
44 * to reduce the number of adapter failures. Transceiver select
45 * logic changed to use value from EEPROM. Autoconfiguration
46 * features added.
47 * Done by:
48 * Serge Babkin
49 * Chelindbank (Chelyabinsk, Russia)

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

77#ifdef INET
78#include <netinet/in.h>
79#include <netinet/in_systm.h>
80#include <netinet/in_var.h>
81#include <netinet/ip.h>
82#include <netinet/if_ether.h>
83#endif
84
42 *
43 * Promiscuous mode added and interrupt logic slightly changed
44 * to reduce the number of adapter failures. Transceiver select
45 * logic changed to use value from EEPROM. Autoconfiguration
46 * features added.
47 * Done by:
48 * Serge Babkin
49 * Chelindbank (Chelyabinsk, Russia)

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

77#ifdef INET
78#include <netinet/in.h>
79#include <netinet/in_systm.h>
80#include <netinet/in_var.h>
81#include <netinet/ip.h>
82#include <netinet/if_ether.h>
83#endif
84
85#ifdef IPX
86#include <netipx/ipx.h>
87#include <netipx/ipx_if.h>
88#endif
89
85#ifdef NS
86#include <netns/ns.h>
87#include <netns/ns_if.h>
88#endif
89
90#if NBPFILTER > 0
91#include <net/bpf.h>
92#include <net/bpfdesc.h>

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

1136 ifp->if_flags |= IFF_UP;
1137 switch (ifa->ifa_addr->sa_family) {
1138#ifdef INET
1139 case AF_INET:
1140 epinit(ifp->if_unit); /* before arpwhohas */
1141 arp_ifinit((struct arpcom *)ifp, ifa);
1142 break;
1143#endif
90#ifdef NS
91#include <netns/ns.h>
92#include <netns/ns_if.h>
93#endif
94
95#if NBPFILTER > 0
96#include <net/bpf.h>
97#include <net/bpfdesc.h>

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

1141 ifp->if_flags |= IFF_UP;
1142 switch (ifa->ifa_addr->sa_family) {
1143#ifdef INET
1144 case AF_INET:
1145 epinit(ifp->if_unit); /* before arpwhohas */
1146 arp_ifinit((struct arpcom *)ifp, ifa);
1147 break;
1148#endif
1149#ifdef IPX
1150 case AF_IPX:
1151 {
1152 register struct ipx_addr *ina = &(IA_SIPX(ifa)->sipx_addr);
1153
1154 if (ipx_nullhost(*ina))
1155 ina->x_host =
1156 *(union ipx_host *) (sc->arpcom.ac_enaddr);
1157 else {
1158 ifp->if_flags &= ~IFF_RUNNING;
1159 bcopy((caddr_t) ina->x_host.c_host,
1160 (caddr_t) sc->arpcom.ac_enaddr,
1161 sizeof(sc->arpcom.ac_enaddr));
1162 }
1163 epinit(ifp->if_unit);
1164 break;
1165 }
1166#endif
1144#ifdef NS
1145 case AF_NS:
1146 {
1147 register struct ns_addr *ina = &(IA_SNS(ifa)->sns_addr);
1148
1149 if (ns_nullhost(*ina))
1150 ina->x_host =
1151 *(union ns_host *) (sc->arpcom.ac_enaddr);

--- 212 unchanged lines hidden ---
1167#ifdef NS
1168 case AF_NS:
1169 {
1170 register struct ns_addr *ina = &(IA_SNS(ifa)->sns_addr);
1171
1172 if (ns_nullhost(*ina))
1173 ina->x_host =
1174 *(union ns_host *) (sc->arpcom.ac_enaddr);

--- 212 unchanged lines hidden ---