summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_packet.h
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2012-03-22 16:40:53 +0000
committerChris Hall <chris.hall@highwayman.com>2012-03-22 16:40:53 +0000
commit97f375b3e02e0f4ec18f68fbe36fc5ae16693d26 (patch)
treed0f89e2217723160b33c6632502e4f8eff6c3305 /ospfd/ospf_packet.h
parent508e7f2b7d78b1352e2bc1b282937ef7ab138a18 (diff)
parent87f81eae2a74580e58cd9bed13a4c62306181d04 (diff)
downloadquagga-ex22b.tar.bz2
quagga-ex22b.tar.xz
Merge commit 'quagga_0_99_20_1_release' into euro_ix_bex22b
v0.99.20ex22b Conflicts: bgpd/bgp_open.c bgpd/bgp_packet.c The bpp_open.c code has been replaced by code in bgp_open_state.c, so these changes have no effect on the euro_ix branch, which already rejects invalid OPEN with a NOTIFY. Otherwise: modified: ospfd/ospf_dump.c modified: ospfd/ospf_dump.h modified: ospfd/ospf_lsa.h modified: ospfd/ospf_packet.c modified: ospfd/ospf_packet.h
Diffstat (limited to 'ospfd/ospf_packet.h')
-rw-r--r--ospfd/ospf_packet.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ospfd/ospf_packet.h b/ospfd/ospf_packet.h
index 9a472081..337686ad 100644
--- a/ospfd/ospf_packet.h
+++ b/ospfd/ospf_packet.h
@@ -46,6 +46,10 @@
#define OSPF_HELLO_REPLY_DELAY 1
+/* Return values of functions involved in packet verification, see ospf6d. */
+#define MSG_OK 0
+#define MSG_NG 1
+
struct ospf_packet
{
struct ospf_packet *next;
@@ -117,6 +121,10 @@ struct ospf_db_desc
u_int32_t dd_seqnum;
};
+struct ospf_ls_update
+{
+ u_int32_t num_lsas;
+};
/* Macros. */
/* XXX Perhaps obsolete; function in ospf_packet.c */
@@ -163,4 +171,7 @@ extern int ospf_ls_ack_timer (struct thread *);
extern int ospf_poll_timer (struct thread *);
extern int ospf_hello_reply_timer (struct thread *);
+extern const struct message ospf_packet_type_str[];
+extern const size_t ospf_packet_type_str_max;
+
#endif /* _ZEBRA_OSPF_PACKET_H */