summaryrefslogtreecommitdiff
path: root/ospfd/ospf_packet.h
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2012-01-30 15:41:39 +0400
committerDavid Lamparter <equinox@diac24.net>2012-03-12 11:05:14 +0100
commit75c8eabbb5d3dc8aa21b61e8700ab939ce272f5c (patch)
tree9ecfa0b4bedf00abb544fea8b9242e59af31a5b6 /ospfd/ospf_packet.h
parent7e0e2cb14ca16ce9eaca3b0300c1ffa92a6a104b (diff)
ospfd: introduce ospf_packet_minlen[] (BZ#705)
This commit ports some of the OSPFv3 packet reception checks to OSPFv2. * ospf_packet.c * ospf_packet_minlen[]: a direct equivalent of ospf6_packet_minlen[] * ospf_packet_examin(): new function designed after the first part of ospf6_packet_examin() * ospf_read(): verify received packet with ospf_packet_examin() * ospf_packet.h: add convenience macros
Diffstat (limited to 'ospfd/ospf_packet.h')
-rw-r--r--ospfd/ospf_packet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ospfd/ospf_packet.h b/ospfd/ospf_packet.h
index 2115f111..3cbe8897 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;