diff options
-rw-r--r-- | usr.sbin/bgpd/rde.h | 14 | ||||
-rw-r--r-- | usr.sbin/bgpd/rde_rib.c | 14 |
2 files changed, 13 insertions, 15 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h index db264c6b335..1e24fb8c2d0 100644 --- a/usr.sbin/bgpd/rde.h +++ b/usr.sbin/bgpd/rde.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.h,v 1.7 2003/12/25 23:22:13 claudio Exp $ */ +/* $OpenBSD: rde.h,v 1.8 2003/12/26 21:30:20 henning Exp $ */ /* * Copyright (c) 2003 Claudio Jeker <claudio@openbsd.org> and @@ -145,7 +145,17 @@ enum nexthop_state { NEXTHOP_REACH }; -struct nexthop; +struct nexthop { + LIST_ENTRY(nexthop) nexthop_l; + enum nexthop_state state; +#if 0 + u_int32_t costs; +#endif + struct aspath_head path_h; + struct in_addr exit_nexthop; + struct in_addr true_nexthop; + u_int8_t connected; +}; LIST_HEAD(prefix_head, prefix); diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c index b7115a2c6e0..bdb690159b1 100644 --- a/usr.sbin/bgpd/rde_rib.c +++ b/usr.sbin/bgpd/rde_rib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_rib.c,v 1.9 2003/12/26 18:07:33 henning Exp $ */ +/* $OpenBSD: rde_rib.c,v 1.10 2003/12/26 21:30:20 henning Exp $ */ /* * Copyright (c) 2003 Claudio Jeker <claudio@openbsd.org> @@ -899,18 +899,6 @@ static void nexthop_free(struct nexthop *); * may be passed to the external neighbor if the neighbor and the exit nexthop * reside in the same subnet -- directly connected. */ -struct nexthop { - LIST_ENTRY(nexthop) nexthop_l; - enum nexthop_state state; -#if 0 - u_int32_t costs; -#endif - struct aspath_head path_h; - struct in_addr exit_nexthop; - struct in_addr true_nexthop; - u_int8_t connected; -}; - struct nexthop_table { LIST_HEAD(, nexthop) *nexthop_hashtbl; u_long nexthop_hashmask; |