summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-06-01 04:17:31 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-06-01 04:17:31 +0000
commit551227565283bce9f8ef69ff903e26f70ecfed11 (patch)
tree031955610c4798374e96b3427eadf4a4d18b58e7 /usr.sbin/bgpd
parentd7f3b01f971e332b79ee0f23c84b552600423d8e (diff)
Remove a stupid wrapper function that does nothing more then calling another
function with the same arguments.
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/rde.h3
-rw-r--r--usr.sbin/bgpd/rde_rib.c14
2 files changed, 3 insertions, 14 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h
index 1340a70c8a9..596c91b5868 100644
--- a/usr.sbin/bgpd/rde.h
+++ b/usr.sbin/bgpd/rde.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.h,v 1.99 2007/04/23 13:04:24 claudio Exp $ */
+/* $OpenBSD: rde.h,v 1.100 2007/06/01 04:17:30 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and
@@ -332,7 +332,6 @@ void path_update(struct rde_peer *, struct rde_aspath *,
int path_compare(struct rde_aspath *, struct rde_aspath *);
struct rde_aspath *path_lookup(struct rde_aspath *, struct rde_peer *);
void path_remove(struct rde_aspath *);
-void path_updateall(struct rde_aspath *, enum nexthop_state);
void path_destroy(struct rde_aspath *);
int path_empty(struct rde_aspath *);
struct rde_aspath *path_copy(struct rde_aspath *);
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c
index eceda841893..609660f69c4 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.95 2007/05/11 11:27:59 claudio Exp $ */
+/* $OpenBSD: rde_rib.c,v 1.96 2007/06/01 04:17:30 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -235,16 +235,6 @@ path_remove(struct rde_aspath *asp)
path_destroy(asp);
}
-void
-path_updateall(struct rde_aspath *asp, enum nexthop_state state)
-{
- if (rde_noevaluate())
- /* if the decision process is turned off this is a no-op */
- return;
-
- prefix_updateall(asp, state);
-}
-
/* this function is only called by prefix_remove and path_remove */
void
path_destroy(struct rde_aspath *asp)
@@ -876,7 +866,7 @@ nexthop_update(struct kroute_nexthop *msg)
return;
LIST_FOREACH(asp, &nh->path_h, nexthop_l) {
- path_updateall(asp, nh->state);
+ prefix_updateall(asp, nh->state);
}
}