]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfd/ospf_lsa.c
ospfd: Respect loopback's cost that is set and set loopback costs to 0
[mirror_frr.git] / ospfd / ospf_lsa.c
index 452a3ba3747e597b504905ca2c610853dc5190c4..67f1faf8a9abf948afbec5595f63bf2446f4b21e 100644 (file)
@@ -608,7 +608,8 @@ static int 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. */