Deleted Added
full compact
startup.c (22997) startup.c (43713)
1/*
2 * Copyright (c) 1985, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Copyright (c) 1995 John Hay. All rights reserved.
6 *
7 * This file includes significant work done at Cornell University by
8 * Bill Nesheim. That work included by permission.

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

30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
1/*
2 * Copyright (c) 1985, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Copyright (c) 1995 John Hay. All rights reserved.
6 *
7 * This file includes significant work done at Cornell University by
8 * Bill Nesheim. That work included by permission.

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

30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * $Id$
38 * $Id: startup.c,v 1.6 1997/02/22 16:01:01 peter Exp $
39 */
40
41#ifndef lint
42static char sccsid[] = "@(#)startup.c 8.1 (Berkeley) 6/5/93";
43#endif /* not lint */
44
45/*
46 * Routing Table Management Daemon

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

178 if (ifs.int_flags & IFF_BROADCAST) {
179 if (brdaddr == 0) {
180 syslog(LOG_ERR, "%s: (get broadaddr)",
181 sdl->sdl_data);
182 continue;
183 }
184 ifs.int_dstaddr = *brdaddr;
185 }
39 */
40
41#ifndef lint
42static char sccsid[] = "@(#)startup.c 8.1 (Berkeley) 6/5/93";
43#endif /* not lint */
44
45/*
46 * Routing Table Management Daemon

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

178 if (ifs.int_flags & IFF_BROADCAST) {
179 if (brdaddr == 0) {
180 syslog(LOG_ERR, "%s: (get broadaddr)",
181 sdl->sdl_data);
182 continue;
183 }
184 ifs.int_dstaddr = *brdaddr;
185 }
186 if (ifs.int_flags & IFF_LOOPBACK) {
187 ifs.int_dstaddr = ifs.int_addr;
188 }
186 /*
187 * already known to us?
188 * what makes a POINTOPOINT if unique is its dst addr,
189 * NOT its source address
190 */
191 if ( ((ifs.int_flags & IFF_POINTOPOINT) &&
192 if_ifwithdstaddr(&ifs.int_dstaddr)) ||
193 ( ((ifs.int_flags & IFF_POINTOPOINT) == 0) &&
194 if_ifwithaddr(&ifs.int_addr)))
195 continue;
189 /*
190 * already known to us?
191 * what makes a POINTOPOINT if unique is its dst addr,
192 * NOT its source address
193 */
194 if ( ((ifs.int_flags & IFF_POINTOPOINT) &&
195 if_ifwithdstaddr(&ifs.int_dstaddr)) ||
196 ( ((ifs.int_flags & IFF_POINTOPOINT) == 0) &&
197 if_ifwithaddr(&ifs.int_addr)))
198 continue;
196 /* no one cares about software loopback interfaces */
197 if (ifs.int_flags & IFF_LOOPBACK)
198 continue;
199 ifp = (struct interface *)
200 malloc(sdl->sdl_nlen + 1 + sizeof(ifs));
201 if (ifp == 0) {
202 syslog(LOG_ERR, "IPXrouted: out of memory\n");
203 lookforinterfaces = 1;
204 break;
205 }
206 *ifp = ifs;

--- 75 unchanged lines hidden ---
199 ifp = (struct interface *)
200 malloc(sdl->sdl_nlen + 1 + sizeof(ifs));
201 if (ifp == 0) {
202 syslog(LOG_ERR, "IPXrouted: out of memory\n");
203 lookforinterfaces = 1;
204 break;
205 }
206 *ifp = ifs;

--- 75 unchanged lines hidden ---