summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ripd/ripd.h
diff options
context:
space:
mode:
authormichele <michele@openbsd.org>2009-03-24 19:26:13 +0000
committermichele <michele@openbsd.org>2009-03-24 19:26:13 +0000
commit39c227bca9a4003fc2ff80ecdea035ada6f8d152 (patch)
tree4135188d56a4b3ed0bacdb9d8a9a169b43f3d73a /usr.sbin/ripd/ripd.h
parent+otus(4) (diff)
downloadwireguard-openbsd-39c227bca9a4003fc2ff80ecdea035ada6f8d152.tar.xz
wireguard-openbsd-39c227bca9a4003fc2ff80ecdea035ada6f8d152.zip
Change the behaviour of redistribute default.
Now a default route have to be present in the fib to be correctly advertised. Spotted and tested by Steven Surdok on ripd. ok claudio@
Diffstat (limited to 'usr.sbin/ripd/ripd.h')
-rw-r--r--usr.sbin/ripd/ripd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ripd/ripd.h b/usr.sbin/ripd/ripd.h
index f14fe7d8b31..7c400bdc9a0 100644
--- a/usr.sbin/ripd/ripd.h
+++ b/usr.sbin/ripd/ripd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ripd.h,v 1.11 2008/12/17 14:19:39 michele Exp $ */
+/* $OpenBSD: ripd.h,v 1.12 2009/03/24 19:26:13 michele Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -58,7 +58,6 @@
#define F_REDISTRIBUTED 0x0100
#define REDISTRIBUTE_ON 0x01
-#define REDISTRIBUTE_DEFAULT 0x02
#define OPT_SPLIT_HORIZON 0x01
#define OPT_SPLIT_POISONED 0x02
@@ -256,7 +255,8 @@ enum {
#define REDIST_STATIC 0x02
#define REDIST_LABEL 0x04
#define REDIST_ADDR 0x08
-#define REDIST_NO 0x10
+#define REDIST_DEFAULT 0x10
+#define REDIST_NO 0x20
struct redistribute {
SIMPLEQ_ENTRY(redistribute) entry;