diff options
author | Esben Norby <norby@cvs.openbsd.org> | 2007-02-26 12:16:19 +0000 |
---|---|---|
committer | Esben Norby <norby@cvs.openbsd.org> | 2007-02-26 12:16:19 +0000 |
commit | c28563d68bf0a176e8f3a922cb964a4953418446 (patch) | |
tree | 6784a66f008f49359421c47294ee087a39062b78 /usr.sbin | |
parent | b78101bae0a5ae7038a15f23ea0706d01bd8bd99 (diff) |
Set the metric for loopback interfaces.
Fix by Dustin Lundquist - thank you very much.
ok henning@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ospfd/ospfe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/ospfe.c b/usr.sbin/ospfd/ospfe.c index 41964afba9d..d3ad081789b 100644 --- a/usr.sbin/ospfd/ospfe.c +++ b/usr.sbin/ospfd/ospfe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfe.c,v 1.52 2007/02/01 13:02:04 claudio Exp $ */ +/* $OpenBSD: ospfe.c,v 1.53 2007/02/26 12:16:18 norby Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -704,6 +704,7 @@ orig_rtr_lsa(struct area *area) rtr_link.id = iface->addr.s_addr; rtr_link.data = 0xffffffff; rtr_link.type = LINK_TYPE_STUB_NET; + rtr_link.metric = htons(iface->metric); num_links++; if (buf_add(buf, &rtr_link, sizeof(rtr_link))) fatalx("orig_rtr_lsa: buf_add failed"); |