summaryrefslogtreecommitdiffstats
path: root/proto/bgp/packets.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-07-31 01:04:32 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-07-31 01:04:32 +0200
commitd1e146f2f8da303af7bbe0cec363cc15c58c37fd (patch)
tree7179724c7752d0c3ae5801736f8071b71243c60e /proto/bgp/packets.c
parentac3ac49a71d4b290cfb28aecafc8ac4a69df7a64 (diff)
downloadbird-d1e146f2f8da303af7bbe0cec363cc15c58c37fd.tar
bird-d1e146f2f8da303af7bbe0cec363cc15c58c37fd.zip
Implements IGP metric comparison for BGP routes.
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r--proto/bgp/packets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index 632c564..29d23b9 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -823,6 +823,7 @@ bgp_set_next_hop(struct bgp_proto *p, rta *a)
a->gw = ng->addr;
a->iface = ng->iface;
a->hostentry = NULL;
+ a->igp_metric = 0;
}
else /* GW_RECURSIVE */
rta_set_recursive_next_hop(p->p.table, a, p->igp_table, nexthop, nexthop + second);