diff options
author | Ondrej Filip <feela@network.cz> | 2000-05-04 03:23:03 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-05-04 03:23:03 +0200 |
commit | d345cda5a1cea03a09e5a37c999e88c5177c8a9e (patch) | |
tree | 2655c3d095e1ea1717807396a8d6df588f5a7905 /proto/ospf/lsalib.c | |
parent | 9e48d717cf681dcc3cfaaee4358b5c6fa3aa409e (diff) | |
download | bird-d345cda5a1cea03a09e5a37c999e88c5177c8a9e.tar bird-d345cda5a1cea03a09e5a37c999e88c5177c8a9e.zip |
Bugfix in Network lsa originating
Bugfix in ntohlsab() and htonlsab()
For calculating of rt I use my own fib. I delete routes! ;-)
Diffstat (limited to 'proto/ospf/lsalib.c')
-rw-r--r-- | proto/ospf/lsalib.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } /* |