summaryrefslogtreecommitdiffstats
path: root/sys/netipx/spx_usrreq.c
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>1999-08-28 18:21:55 +0000
committerjhay <jhay@FreeBSD.org>1999-08-28 18:21:55 +0000
commitc4958328e037b668484eec86b3cdc4e41ba94e6d (patch)
treeaa08967c601106f45ce5a821832f1130dfae13d2 /sys/netipx/spx_usrreq.c
parentf98ac3b4e9396a677f79ad70985cb246cb229470 (diff)
downloadFreeBSD-src-c4958328e037b668484eec86b3cdc4e41ba94e6d.zip
FreeBSD-src-c4958328e037b668484eec86b3cdc4e41ba94e6d.tar.gz
Get rid of the old XNS checksum code and implement it the IPX way.
PR: 13374 Submitted by: Boris Popov <bp@butya.kz>
Diffstat (limited to 'sys/netipx/spx_usrreq.c')
-rw-r--r--sys/netipx/spx_usrreq.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/netipx/spx_usrreq.c b/sys/netipx/spx_usrreq.c
index 7418eac..be8eb97 100644
--- a/sys/netipx/spx_usrreq.c
+++ b/sys/netipx/spx_usrreq.c
@@ -1081,11 +1081,7 @@ send:
si->si_ack = htons(cb->s_ack);
if (ipxcksum) {
- si->si_sum = 0;
- len = ntohs(si->si_len);
- if (len & 1)
- len++;
- si->si_sum = ipx_cksum(m, len);
+ si->si_sum = ipx_cksum(m, ntohs(si->si_len));
} else
si->si_sum = 0xffff;
OpenPOWER on IntegriCloud