table.c (90868) | table.c (108533) |
---|---|
1/* 2 * Copyright (c) 1983, 1988, 1993 3 * The Regents of the University of California. 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 --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * | 1/* 2 * Copyright (c) 1983, 1988, 1993 3 * The Regents of the University of California. 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 --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * |
33 * $FreeBSD: head/sbin/routed/table.c 90868 2002-02-18 20:35:27Z mike $ | 33 * $FreeBSD: head/sbin/routed/table.c 108533 2003-01-01 18:49:04Z schweikh $ |
34 */ 35 36#include "defs.h" 37 38#if !defined(sgi) && !defined(__NetBSD__) 39static char sccsid[] __attribute__((unused)) = "@(#)tables.c 8.1 (Berkeley) 6/5/93"; 40#elif defined(__NetBSD__) 41__RCSID("$NetBSD$"); 42#endif | 34 */ 35 36#include "defs.h" 37 38#if !defined(sgi) && !defined(__NetBSD__) 39static char sccsid[] __attribute__((unused)) = "@(#)tables.c 8.1 (Berkeley) 6/5/93"; 40#elif defined(__NetBSD__) 41__RCSID("$NetBSD$"); 42#endif |
43#ident "$FreeBSD: head/sbin/routed/table.c 90868 2002-02-18 20:35:27Z mike $" | 43#ident "$FreeBSD: head/sbin/routed/table.c 108533 2003-01-01 18:49:04Z schweikh $" |
44 45static struct rt_spare *rts_better(struct rt_entry *); 46static struct rt_spare rts_empty = {0,0,0,HOPCNT_INFINITY,0,0,0}; 47static void set_need_flash(void); 48#ifdef _HAVE_SIN_LEN 49static void masktrim(struct sockaddr_in *ap); 50#else 51static void masktrim(struct sockaddr_in_new *ap); --- 1378 unchanged lines hidden (view full) --- 1430 */ 1431 pref = 0; 1432 ags |= (AGS_IF | AGS_CORS_GATE); 1433 1434 /* If it is not an interface, or an alias for an interface, 1435 * it must be a "gateway." 1436 * 1437 * If it is a "remote" interface, it is also a "gateway" to | 44 45static struct rt_spare *rts_better(struct rt_entry *); 46static struct rt_spare rts_empty = {0,0,0,HOPCNT_INFINITY,0,0,0}; 47static void set_need_flash(void); 48#ifdef _HAVE_SIN_LEN 49static void masktrim(struct sockaddr_in *ap); 50#else 51static void masktrim(struct sockaddr_in_new *ap); --- 1378 unchanged lines hidden (view full) --- 1430 */ 1431 pref = 0; 1432 ags |= (AGS_IF | AGS_CORS_GATE); 1433 1434 /* If it is not an interface, or an alias for an interface, 1435 * it must be a "gateway." 1436 * 1437 * If it is a "remote" interface, it is also a "gateway" to |
1438 * the kernel if is not a alias. | 1438 * the kernel if is not an alias. |
1439 */ 1440 if (RT->rt_ifp == 0 1441 || (RT->rt_ifp->int_state & IS_REMOTE)) 1442 ags |= (AGS_GATEWAY | AGS_SUPPRESS | AGS_AGGREGATE); 1443 } 1444 1445 /* If RIP is off and IRDP is on, let the route to the discovered 1446 * route suppress any RIP routes. Eventually the RIP routes --- 696 unchanged lines hidden --- | 1439 */ 1440 if (RT->rt_ifp == 0 1441 || (RT->rt_ifp->int_state & IS_REMOTE)) 1442 ags |= (AGS_GATEWAY | AGS_SUPPRESS | AGS_AGGREGATE); 1443 } 1444 1445 /* If RIP is off and IRDP is on, let the route to the discovered 1446 * route suppress any RIP routes. Eventually the RIP routes --- 696 unchanged lines hidden --- |