summaryrefslogtreecommitdiff
path: root/usr.sbin/eigrpd/rde.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@cvs.openbsd.org>2015-12-13 19:02:50 +0000
committerRenato Westphal <renato@cvs.openbsd.org>2015-12-13 19:02:50 +0000
commit0fd720b609afab6a845b6d1343a04c293232f21b (patch)
treeda794f0c8db6f4fed4707740d2bddcdd60078210 /usr.sbin/eigrpd/rde.h
parent428b8be00a508fa73949a3a7df2d49df57321edb (diff)
Respect the k-values configuration when calculating the composite metric.
Diffstat (limited to 'usr.sbin/eigrpd/rde.h')
-rw-r--r--usr.sbin/eigrpd/rde.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/eigrpd/rde.h b/usr.sbin/eigrpd/rde.h
index a08394f7076..dd65d87264c 100644
--- a/usr.sbin/eigrpd/rde.h
+++ b/usr.sbin/eigrpd/rde.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.h,v 1.5 2015/10/27 03:25:55 renato Exp $ */
+/* $OpenBSD: rde.h,v 1.6 2015/12/13 19:02:49 renato Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@@ -155,12 +155,15 @@ struct eigrp_route *route_new(struct rt_node *, struct rde_nbr *,
struct rinfo *);
void route_del(struct rt_node *, struct eigrp_route *);
uint32_t safe_sum_uint32(uint32_t, uint32_t);
+uint32_t safe_mul_uint32(uint32_t, uint32_t);
uint32_t eigrp_composite_delay(uint32_t);
uint32_t eigrp_real_delay(uint32_t);
uint32_t eigrp_composite_bandwidth(uint32_t);
uint32_t eigrp_real_bandwidth(uint32_t);
-void route_update_metrics(struct eigrp_route *,
- struct rinfo *);
+uint32_t route_composite_metric(uint8_t *, uint32_t, uint32_t,
+ uint8_t, uint8_t);
+void route_update_metrics(struct eigrp *,
+ struct eigrp_route *, struct rinfo *);
void reply_outstanding_add(struct rt_node *,
struct rde_nbr *);
struct reply_node *reply_outstanding_find(struct rt_node *,