From a6bc04d59130c49a1dbfadffa4285b11e2ff4939 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 29 Oct 2009 23:57:42 +0100 Subject: Implements better checks on incoming packets and LSAs in OSPF. --- proto/ospf/lsalib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'proto/ospf/lsalib.h') diff --git a/proto/ospf/lsalib.h b/proto/ospf/lsalib.h index 640fa17..ed929be 100644 --- a/proto/ospf/lsalib.h +++ b/proto/ospf/lsalib.h @@ -20,6 +20,7 @@ u16 lsasum_check(struct ospf_lsa_header *h, void *body); #define CMP_SAME 0 #define CMP_OLDER -1 int lsa_comp(struct ospf_lsa_header *l1, struct ospf_lsa_header *l2); +int lsa_validate(struct ospf_lsa_header *lsa, void *body); struct top_hash_entry * lsa_install_new(struct proto_ospf *po, struct ospf_lsa_header *lsa, u32 domain, void *body); void ospf_age(struct proto_ospf *po); void flush_lsa(struct top_hash_entry *en, struct proto_ospf *po); -- cgit v1.2.3