From 1ada361a8d435a84562e55d9a90b5fce116666d5 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 5 Aug 2008 06:51:12 +0000 Subject: [PATCH] Do not advertise the default route with wrong metric of 0. Set it to 1 by default. Reminded to commit this brad@, OK deraadt@ --- usr.sbin/ripd/ripd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); } -- 2.20.1