From: claudio Date: Tue, 5 Aug 2008 06:51:12 +0000 (+0000) Subject: Do not advertise the default route with wrong metric of 0. Set it to 1 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1ada361a8d435a84562e55d9a90b5fce116666d5;p=openbsd Do not advertise the default route with wrong metric of 0. Set it to 1 by default. Reminded to commit this brad@, OK deraadt@ --- diff --git a/usr.sbin/ripd/ripd.c b/usr.sbin/ripd/ripd.c index cdba3cca94a..05574b60d71 100644 --- a/usr.sbin/ripd/ripd.c +++ b/usr.sbin/ripd/ripd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ripd.c,v 1.9 2008/05/12 19:15:02 pyr Exp $ */ +/* $OpenBSD: ripd.c,v 1.10 2008/08/05 06:51:12 claudio Exp $ */ /* * Copyright (c) 2006 Michele Marchetto @@ -531,6 +531,7 @@ ripd_redistribute_default(int type) return; bzero(&kr, sizeof(kr)); + kr.metric = 1; /* default metric */ main_imsg_compose_rde(type, 0, &kr, sizeof(struct kroute)); }