diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-06-22 20:28:59 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-06-22 20:28:59 +0000 |
commit | 6fea9855664583f52deafa42b35f7320cad8da93 (patch) | |
tree | 03958bbe9997531e60137428ca3852b1405c29eb /usr.sbin/bgpd/bgpd.h | |
parent | 73fe7b61cd58457249a00cb41a0673dc5db8bbaa (diff) |
Make the RDE IPv6 ready missing is the message handling. The internal
prefix tree changed form a hash table to a per AF RB tree.
OK henning@ some ideas are from Brent Graveland.
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r-- | usr.sbin/bgpd/bgpd.h | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index 2f8c42f4be6..96edba5445e 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.129 2004/06/22 07:22:31 henning Exp $ */ +/* $OpenBSD: bgpd.h,v 1.130 2004/06/22 20:28:58 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -593,16 +593,21 @@ void imsg_free(struct imsg *); int imsg_get_fd(struct imsgbuf *); /* kroute.c */ -int kr_init(int); -int kr_change(struct kroute *); -int kr_delete(struct kroute *); -void kr_shutdown(void); -void kr_fib_couple(void); -void kr_fib_decouple(void); -int kr_dispatch_msg(void); -int kr_nexthop_add(struct bgpd_addr *); -void kr_nexthop_delete(struct bgpd_addr *); -void kr_show_route(struct imsg *); +int kr_init(int); +int kr_change(struct kroute *); +int kr_delete(struct kroute *); +void kr_shutdown(void); +void kr_fib_couple(void); +void kr_fib_decouple(void); +int kr_dispatch_msg(void); +int kr_nexthop_add(struct bgpd_addr *); +void kr_nexthop_delete(struct bgpd_addr *); +void kr_show_route(struct imsg *); +in_addr_t prefixlen2mask(u_int8_t); +int prefix_equal(const struct bgpd_addr *, const struct bgpd_addr *, + int); +void inet6applymask(struct in6_addr *, const struct in6_addr *, int); + /* control.c */ int control_init(void); |