summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-01-17 19:35:37 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-01-17 19:35:37 +0000
commit0eb529cc1daeabd034c9b73afe31ea23ca92c3b5 (patch)
tree11adc3b098f54f3a8f6e276057376871e3e6e23d /usr.sbin/bgpd/bgpd.h
parent4178e1c718887b538c0ca3a76328d50a17abfaea (diff)
Make it possible to announce own networks. In the RDE these prefixes are
attached to a pseudo peer and inserted like all other prefixes into the RIB. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r--usr.sbin/bgpd/bgpd.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h
index 89e6259eeb5..419d900cea9 100644
--- a/usr.sbin/bgpd/bgpd.h
+++ b/usr.sbin/bgpd/bgpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.h,v 1.70 2004/01/17 18:27:19 henning Exp $ */
+/* $OpenBSD: bgpd.h,v 1.71 2004/01/17 19:35:36 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -140,6 +140,18 @@ struct peer_config {
enum reconf_action reconf_action;
};
+struct network_config {
+ struct bgpd_addr prefix;
+ u_int8_t prefixlen;
+};
+
+TAILQ_HEAD(network_head, network);
+
+struct network {
+ struct network_config net;
+ TAILQ_ENTRY(network) network_l;
+};
+
/* ipc messages */
#define IMSG_HEADER_SIZE sizeof(struct imsg_hdr)
@@ -156,6 +168,7 @@ enum imsg_type {
IMSG_NONE,
IMSG_RECONF_CONF,
IMSG_RECONF_PEER,
+ IMSG_RECONF_NETWORK,
IMSG_RECONF_DONE,
IMSG_UPDATE,
IMSG_UPDATE_ERR,