From d345cda5a1cea03a09e5a37c999e88c5177c8a9e Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Thu, 4 May 2000 01:23:03 +0000 Subject: Bugfix in Network lsa originating Bugfix in ntohlsab() and htonlsab() For calculating of rt I use my own fib. I delete routes! ;-) --- proto/ospf/lsalib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto/ospf/lsalib.c') diff --git a/proto/ospf/lsalib.c b/proto/ospf/lsalib.c index 4c41677..4bb0635 100644 --- a/proto/ospf/lsalib.c +++ b/proto/ospf/lsalib.c @@ -267,12 +267,12 @@ lsasum_calculate(struct ospf_lsa_header *h,void *body,struct proto_ospf *po) length=h->length; htonlsah(h,h); - htonlsab(body,body,h->type,length); + htonlsab(body,body,h->type,length-sizeof(struct ospf_lsa_header)); (void)lsasum_check(h,body,po); ntohlsah(h,h); - ntohlsab(body,body,h->type,length); + ntohlsab(body,body,h->type,length-sizeof(struct ospf_lsa_header)); } /* -- cgit v1.2.3