Fix the ospfd MD5 authentication problem.

Submitted by:	Kevin Schmidt <kps@ucsb.edu>
This commit is contained in:
Munechika SUMIKAWA 2003-03-28 00:16:56 +00:00
parent 1c35735e4c
commit 4f6099ad49
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=77564
6 changed files with 36 additions and 3 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= zebra
PORTVERSION= 0.93b
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= net ipv6
MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/ \
ftp://ftp.ripe.net/mirrors/sites/ftp.zebra.org/pub/zebra/ \

View File

@ -0,0 +1,11 @@
--- ospfd/ospf_packet.c.orig Thu Jul 4 05:06:41 2002
+++ ospfd/ospf_packet.c Fri Mar 28 00:05:26 2003
@@ -276,7 +276,7 @@
/* check crypto seqnum. */
nbr = ospf_nbr_lookup_by_routerid (oi->nbrs, &ospfh->router_id);
- if (nbr && ntohl(nbr->crypt_seqnum) >= ntohl(ospfh->u.crypt.crypt_seqnum))
+ if (nbr && ntohl(nbr->crypt_seqnum) > ntohl(ospfh->u.crypt.crypt_seqnum))
return 0;
/* Generate a digest for the ospf packet - their digest + our digest. */

View File

@ -7,7 +7,7 @@
PORTNAME= zebra
PORTVERSION= 0.93b
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= net ipv6
MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/ \
ftp://ftp.ripe.net/mirrors/sites/ftp.zebra.org/pub/zebra/ \

View File

@ -0,0 +1,11 @@
--- ospfd/ospf_packet.c.orig Thu Jul 4 05:06:41 2002
+++ ospfd/ospf_packet.c Fri Mar 28 00:05:26 2003
@@ -276,7 +276,7 @@
/* check crypto seqnum. */
nbr = ospf_nbr_lookup_by_routerid (oi->nbrs, &ospfh->router_id);
- if (nbr && ntohl(nbr->crypt_seqnum) >= ntohl(ospfh->u.crypt.crypt_seqnum))
+ if (nbr && ntohl(nbr->crypt_seqnum) > ntohl(ospfh->u.crypt.crypt_seqnum))
return 0;
/* Generate a digest for the ospf packet - their digest + our digest. */

View File

@ -7,7 +7,7 @@
PORTNAME= zebra
PORTVERSION= 0.93b
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= net ipv6
MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/ \
ftp://ftp.ripe.net/mirrors/sites/ftp.zebra.org/pub/zebra/ \

View File

@ -0,0 +1,11 @@
--- ospfd/ospf_packet.c.orig Thu Jul 4 05:06:41 2002
+++ ospfd/ospf_packet.c Fri Mar 28 00:05:26 2003
@@ -276,7 +276,7 @@
/* check crypto seqnum. */
nbr = ospf_nbr_lookup_by_routerid (oi->nbrs, &ospfh->router_id);
- if (nbr && ntohl(nbr->crypt_seqnum) >= ntohl(ospfh->u.crypt.crypt_seqnum))
+ if (nbr && ntohl(nbr->crypt_seqnum) > ntohl(ospfh->u.crypt.crypt_seqnum))
return 0;
/* Generate a digest for the ospf packet - their digest + our digest. */