summaryrefslogtreecommitdiff
path: root/ospfd/ospf_packet.h
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2012-02-17 16:20:50 +0400
committerDavid Lamparter <equinox@diac24.net>2012-03-12 11:05:28 +0100
commit4e31de792ec5e48a97360b5b86196b4fa02996a3 (patch)
tree6312c43f628d69392676c85129f107e4ee53b802 /ospfd/ospf_packet.h
parent2d8223c5472129eba89d630dc4f2688ebeae1dd8 (diff)
ospfd: introduce ospf_lsa_minlen[] (BZ#705)
This commit ports more packet checks to OSPFv2, in particular, LSA size verification and Router-LSA link blocks verification. * ospf_lsa.h: add LSA size macros * ospf_packet.h: add struct ospf_ls_update * ospf_packet.c * ospf_lsa_minlen[]: a direct equivalent of ospf6_lsa_minlen[] * ospf_router_lsa_links_examin(): new function, verifies trailing part of a Router-LSA * ospf_lsa_examin(): new function like ospf6_lsa_examin() * ospf_lsaseq_examin(): new function like ospf6_lsaseq_examin() * ospf_packet_examin(): add type-specific deeper level checks
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 3cbe8897..337686ad 100644
--- a/ospfd/ospf_packet.h
+++ b/ospfd/ospf_packet.h
@@ -121,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 */