summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/bgpd.h20
-rw-r--r--usr.sbin/bgpd/rde.h3
2 files changed, 21 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h
index 43ec728aae4..39f4d781bbc 100644
--- a/usr.sbin/bgpd/bgpd.h
+++ b/usr.sbin/bgpd/bgpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.h,v 1.221 2007/12/23 18:26:13 henning Exp $ */
+/* $OpenBSD: bgpd.h,v 1.222 2008/01/23 08:11:32 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -603,6 +603,24 @@ struct filter_peers {
#define COMMUNITY_NO_EXPSUBCONFED 0xff03
#define COMMUNITY_NO_PEER 0xff04 /* RFC 3765 */
+/* extended community definitions */
+#define EXT_COMMUNITY_IANA 0x80
+#define EXT_COMMUNITY_TRANSITIVE 0x40
+#define EXT_COMMUNITY_VALUE 0x3f
+/* extended types */
+#define EXT_COMMUNITY_TWO_AS 0 /* 2 octet AS specific */
+#define EXT_COMMUNITY_IPV4 1 /* IPv4 specific */
+#define EXT_COMMUNITY_FOUR_AS 2 /* 4 octet AS specific */
+#define EXT_COMMUNITY_OPAQUE 3 /* opaque ext community */
+/* sub types */
+#define EXT_COMMUNITY_ROUTE_TGT 2 /* RFC 4360 & RFC4364 */
+#define EXT_CUMMUNITY_ROUTE_ORIG 3 /* RFC 4360 & RFC4364 */
+#define EXT_COMMUNITY_OSPF_DOM_ID 5 /* RFC 4577 */
+#define EXT_COMMUNITY_OSPF_RTR_TYPE 6 /* RFC 4577 */
+#define EXT_COMMUNITY_OSPF_RTR_ID 7 /* RFC 4577 */
+#define EXT_COMMUNITY_BGP_COLLECT 8 /* RFC 4384 */
+
+
struct filter_prefix {
struct bgpd_addr addr;
u_int8_t len;
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h
index 78dd73d1cf0..7c0f6a2a5f9 100644
--- a/usr.sbin/bgpd/rde.h
+++ b/usr.sbin/bgpd/rde.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.h,v 1.101 2007/11/27 01:13:54 claudio Exp $ */
+/* $OpenBSD: rde.h,v 1.102 2008/01/23 08:11:32 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and
@@ -106,6 +106,7 @@ enum attrtypes {
ATTR_CLUSTER_LIST,
ATTR_MP_REACH_NLRI=14,
ATTR_MP_UNREACH_NLRI=15,
+ ATTR_EXT_COMMUNITIES=16,
ATTR_NEW_ASPATH=17,
ATTR_NEW_AGGREGATOR=18
};