summaryrefslogtreecommitdiff
path: root/proto/ospf/ospf.h
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>1999-05-11 15:34:33 +0000
committerOndrej Filip <feela@network.cz>1999-05-11 15:34:33 +0000
commit296ecb56eb4d1951d23d74d502d2c48a42eb6eee (patch)
tree20edb277d047ca74443d6111557d32896dafd01c /proto/ospf/ospf.h
parent1b16029c12a501752388523ebfe2981e7d7d7ed3 (diff)
OSPF RX implementation starts....
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r--proto/ospf/ospf.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h
index ac20e9b0..eb49ca54 100644
--- a/proto/ospf/ospf.h
+++ b/proto/ospf/ospf.h
@@ -11,6 +11,7 @@
#define OSPF_PROTO 89
#ifndef IPV6
+#define OSPF_VERSION 2
#define AllSPFRouters ipa_from_u32(0xe0000005) /* 224.0.0.5 */
#define AllDRouters ipa_from_u32(0xe0000006) /* 224.0.0.6 */
#else
@@ -84,4 +85,31 @@ struct ospf_patt {
byte mode;
};
+struct ospf_packet {
+ u8 version;
+ u8 type;
+#define HELLO 1 /* Hello */
+#define DBDES 2 /* Database description */
+#define LSREQ 3 /* Link state request */
+#define LSUPD 4 /* Link state update */
+#define LSACK 5 /* Link state acknowledgement */
+ u16 length;
+ u32 routerid;
+ u32 areaid;
+ u16 checksum;
+ u16 autype;
+ u8 authetication[8];
+};
+
+struct ospf_hello_packet {
+ struct ospf_packet;
+ u32 netmask;
+ u16 hello_int;
+ u8 options;
+ u8 priority;
+ u32 deadint;
+ u32 dr;
+ u32 bdr;
+};
+
#endif /* _BIRD_OSPF_H_ */