Patch to GateD for people suffering from bad checksums

Bradley Dunn (bradley@dunn.org)
Tue, 22 Jul 1997 23:30:58 -0400 (EDT)

Hi,

Here is a patch for those of us running GateD. Since we can't get a valid
checksum we just ignore it. A dirty kludge, but what can we do? Sorry, I
don't have IOS source so I can't help you if you have ciscos.

--- gated-R3_5_5/src/ospf_rxpkt.c.orig Tue Jul 22 23:18:55 1997
+++ gated-R3_5_5/src/ospf_rxpkt.c Tue Jul 22 23:20:38 1997
@@ -1034,9 +1034,8 @@
vp->iov_base = 0;
}

- if (inet_cksumv(v, vp - v, len - OSPF_AUTH_SIMPLE_SIZE)) {
- bad_packet(OSPF_ERR_OSPF_CHKSUM);
- }
+ /* Livingston kludge - Ignore the result of the checksum validation */
+ (void)inet_cksumv(v, vp - v, len - OSPF_AUTH_SIMPLE_SIZE);
}

if (o_hdr->ospfh_type == OSPF_PKT_MON) {

pbd

--
Going to church does not make a person religious, nor does going to
school make a person educated, any more than going to a garage makes a
person a car.