summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-03-11 12:54:21 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-03-11 12:54:21 +0000
commit9cf558b328c8aee614395d1731b9dafa0d2ca9bb (patch)
tree49978b6b33a570b0469b0743bc607e86d0b2a162 /usr.sbin/bgpd/rde.h
parente45069d653342d4463f4f43fcc2fd66dbc4d4c31 (diff)
Finally commit the transparent-as and nexthop no-modify stuff I wrote on the
way to FOSDEM. With transparent-as set to ye bgpd will not prepend his own AS for sent updates. NB the neighbor needs to set "enforce neighbor-as no" or it will not like the received AS paths. With set nexthop no-modify bgpd will change the nexthop as done normaly. OK henning@ man page update with help of jmc@
Diffstat (limited to 'usr.sbin/bgpd/rde.h')
-rw-r--r--usr.sbin/bgpd/rde.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h
index 827e8c7966e..c61a6523c7b 100644
--- a/usr.sbin/bgpd/rde.h
+++ b/usr.sbin/bgpd/rde.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.h,v 1.62 2004/12/23 15:08:43 henning Exp $ */
+/* $OpenBSD: rde.h,v 1.63 2005/03/11 12:54:20 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and
@@ -131,18 +131,19 @@ struct path_table {
LIST_HEAD(prefix_head, prefix);
-#define F_ATTR_ORIGIN 0x001
-#define F_ATTR_ASPATH 0x002
-#define F_ATTR_NEXTHOP 0x004
-#define F_ATTR_LOCALPREF 0x008
-#define F_ATTR_MED 0x010
-#define F_ATTR_MED_ANNOUNCE 0x020
-#define F_ATTR_MP_REACH 0x040
-#define F_ATTR_MP_UNREACH 0x080
-#define F_PREFIX_ANNOUNCED 0x100
-#define F_NEXTHOP_REJECT 0x200
-#define F_NEXTHOP_BLACKHOLE 0x400
-#define F_ATTR_LINKED 0x800
+#define F_ATTR_ORIGIN 0x0001
+#define F_ATTR_ASPATH 0x0002
+#define F_ATTR_NEXTHOP 0x0004
+#define F_ATTR_LOCALPREF 0x0008
+#define F_ATTR_MED 0x0010
+#define F_ATTR_MED_ANNOUNCE 0x0020
+#define F_ATTR_MP_REACH 0x0040
+#define F_ATTR_MP_UNREACH 0x0080
+#define F_PREFIX_ANNOUNCED 0x0100
+#define F_NEXTHOP_REJECT 0x0200
+#define F_NEXTHOP_BLACKHOLE 0x0400
+#define F_NEXTHOP_NOMODIFY 0x0800
+#define F_ATTR_LINKED 0x1000
#define ORIGIN_IGP 0
#define ORIGIN_EGP 1