summaryrefslogtreecommitdiffstats
path: root/proto/bgp/bgp.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-03-19 23:09:07 +0100
committerMartin Mares <mj@ucw.cz>2000-03-19 23:09:07 +0100
commit2638249d34cc7f600fba25edd29538c00a3aca31 (patch)
tree206aeb113f3822d08385cae49e9b5e1bbe6796fb /proto/bgp/bgp.h
parent349e21bb0bb7584fb18c19859d876893c3130947 (diff)
downloadbird-2638249d34cc7f600fba25edd29538c00a3aca31.tar
bird-2638249d34cc7f600fba25edd29538c00a3aca31.zip
Bare skeleton of the BGP.
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r--proto/bgp/bgp.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h
new file mode 100644
index 0000000..2e352be
--- /dev/null
+++ b/proto/bgp/bgp.h
@@ -0,0 +1,31 @@
+/*
+ * BIRD -- The Border Gateway Protocol
+ *
+ * (c) 2000 Martin Mares <mj@ucw.cz>
+ *
+ * Can be freely distributed and used under the terms of the GNU GPL.
+ */
+
+#ifndef _BIRD_BGP_H_
+#define _BIRD_BGP_H_
+
+struct bgp_config {
+ struct proto_config c;
+ unsigned int local_as, remote_as;
+ ip_addr remote_ip;
+ int multihop; /* Number of hops if multihop */
+};
+
+struct bgp_proto {
+ struct proto p;
+};
+
+struct bgp_route {
+};
+
+struct bgp_attrs {
+};
+
+void bgp_check(struct bgp_config *c);
+
+#endif