]> git.puffer.fish Git - mirror/frr.git/commitdiff
Revert "Fixes Quagga Bugzilla #842 - ospfd uses non-zero metric when describing loopb...
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 23 Mar 2016 13:20:22 +0000 (06:20 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 23 Mar 2016 13:20:22 +0000 (06:20 -0700)
This reverts commit a7928d3ac43b9bd892280f8b12f73d269b8266a8.

This code change breaks allot of tests that have hard coded the
distance.  We'll unrevert this after the 3.0 release window.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
ospfd/ospf_lsa.c

index 1bf3e9e97aefa6b5c85b901ed6cc107978852c3f..fc862966b21bf5bde7a8e2f4513d409cd30956f2 100644 (file)
@@ -639,7 +639,7 @@ lsa_link_loopback_set (struct stream *s, struct ospf_interface *oi)
 
   mask.s_addr = 0xffffffff;
   id.s_addr = oi->address->u.prefix4.s_addr;
-  return link_info_set (s, id, mask, LSA_LINK_TYPE_STUB, 0, 0);
+  return link_info_set (s, id, mask, LSA_LINK_TYPE_STUB, 0, oi->output_cost);
 }
 
 /* Describe Virtual Link. */