Deleted Added
full compact
startup.c (59218) startup.c (122760)
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 * $FreeBSD: head/usr.sbin/IPXrouted/startup.c 59218 2000-04-14 06:49:16Z imp $
38 * $FreeBSD: head/usr.sbin/IPXrouted/startup.c 122760 2003-11-15 17:10:56Z trhodes $
39 */
40
41#ifndef lint
39 */
40
41#ifndef lint
42static char sccsid[] = "@(#)startup.c 8.1 (Berkeley) 6/5/93";
42static const char sccsid[] = "@(#)startup.c 8.1 (Berkeley) 6/5/93";
43#endif /* not lint */
44
45/*
46 * Routing Table Management Daemon
47 */
48#include "defs.h"
49
50#include <sys/param.h>
51#include <sys/ioctl.h>
52#include <sys/sysctl.h>
53#include <sys/time.h>
54
55#include <net/if.h>
56#include <net/if_dl.h>
57
58#include <errno.h>
59#include <nlist.h>
43#endif /* not lint */
44
45/*
46 * Routing Table Management Daemon
47 */
48#include "defs.h"
49
50#include <sys/param.h>
51#include <sys/ioctl.h>
52#include <sys/sysctl.h>
53#include <sys/time.h>
54
55#include <net/if.h>
56#include <net/if_dl.h>
57
58#include <errno.h>
59#include <nlist.h>
60#include <search.h>
60#include <stdlib.h>
61
62struct interface *ifnet;
63int lookforinterfaces = 1;
64int performnlist = 1;
65int gateway = 0;
66int externalinterfaces = 0; /* # of remote and local interfaces */
67

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

249
250 dst = &ifp->int_dstaddr;
251
252 /* Search for interfaces with the same net */
253 ifp->int_sq.n = ifp->int_sq.p = &(ifp->int_sq);
254 match = afswitch[dst->sa_family].af_netmatch;
255 if (match)
256 for (ifp2 = ifnet; ifp2; ifp2 =ifp2->int_next) {
61#include <stdlib.h>
62
63struct interface *ifnet;
64int lookforinterfaces = 1;
65int performnlist = 1;
66int gateway = 0;
67int externalinterfaces = 0; /* # of remote and local interfaces */
68

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

250
251 dst = &ifp->int_dstaddr;
252
253 /* Search for interfaces with the same net */
254 ifp->int_sq.n = ifp->int_sq.p = &(ifp->int_sq);
255 match = afswitch[dst->sa_family].af_netmatch;
256 if (match)
257 for (ifp2 = ifnet; ifp2; ifp2 =ifp2->int_next) {
257 if (ifp->int_flags & IFF_POINTOPOINT == 0)
258 if ((ifp->int_flags & IFF_POINTOPOINT) == 0)
258 continue;
259 if ((*match)(&ifp2->int_dstaddr,&ifp->int_dstaddr)) {
260 insque(&ifp2->int_sq,&ifp->int_sq);
261 break;
262 }
263 }
264 } else {
265 bzero(&net, sizeof(net));

--- 16 unchanged lines hidden ---
259 continue;
260 if ((*match)(&ifp2->int_dstaddr,&ifp->int_dstaddr)) {
261 insque(&ifp2->int_sq,&ifp->int_sq);
262 break;
263 }
264 }
265 } else {
266 bzero(&net, sizeof(net));

--- 16 unchanged lines hidden ---