summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_packet.c
diff options
context:
space:
mode:
authorpaul <paul>2003-02-03 18:40:56 +0000
committerpaul <paul>2003-02-03 18:40:56 +0000
commit6c3891af80247924ff7c903d0b90e5f7899a32ca (patch)
treeaac2d72115a5cd2ea6607491bf9a104669e304eb /ospfd/ospf_packet.c
parent515e86871e5081e81e7b63d6119f185e8f4f152d (diff)
downloadquagga-6c3891af80247924ff7c903d0b90e5f7899a32ca.tar.bz2
quagga-6c3891af80247924ff7c903d0b90e5f7899a32ca.tar.xz
Merge to zebra.org CVS 20030203 16:30GMT
Diffstat (limited to 'ospfd/ospf_packet.c')
-rw-r--r--ospfd/ospf_packet.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c
index 4a3b5e11..0b9e60f3 100644
--- a/ospfd/ospf_packet.c
+++ b/ospfd/ospf_packet.c
@@ -226,10 +226,9 @@ ospf_packet_dup (struct ospf_packet *op)
{
struct ospf_packet *new;
- if (stream_get_endp(op->s) != op->length) {
- zlog_warn ("ospf_packet_dup stream %d ospf_packet %d size mismatch",
+ if (stream_get_endp(op->s) != op->length)
+ zlog_warn ("ospf_packet_dup stream %ld ospf_packet %d size mismatch",
STREAM_SIZE(op->s), op->length);
- }
/* Reserve space for MD5 authentication that may be added later. */
new = ospf_packet_new (stream_get_endp(op->s) + OSPF_AUTH_MD5_SIZE);
@@ -367,10 +366,8 @@ ospf_make_md5_digest (struct ospf_interface *oi, struct ospf_packet *op)
/* We do *NOT* increment the OSPF header length. */
op->length = ntohs (ospfh->length) + OSPF_AUTH_MD5_SIZE;
- if (stream_get_endp(op->s) != op->length) {
- zlog_warn("ospf_make_md5_digest: length mismatch stream %d ospf_packet %d",
- stream_get_endp(op->s), op->length);
- }
+ if (stream_get_endp(op->s) != op->length)
+ zlog_warn("ospf_make_md5_digest: length mismatch stream %ld ospf_packet %d", stream_get_endp(op->s), op->length);
return OSPF_AUTH_MD5_SIZE;
}