From c4958328e037b668484eec86b3cdc4e41ba94e6d Mon Sep 17 00:00:00 2001 From: jhay Date: Sat, 28 Aug 1999 18:21:55 +0000 Subject: Get rid of the old XNS checksum code and implement it the IPX way. PR: 13374 Submitted by: Boris Popov --- sys/netipx/ipx_outputfl.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sys/netipx/ipx_outputfl.c') diff --git a/sys/netipx/ipx_outputfl.c b/sys/netipx/ipx_outputfl.c index fb5c2fb..d5a0266 100644 --- a/sys/netipx/ipx_outputfl.c +++ b/sys/netipx/ipx_outputfl.c @@ -247,12 +247,8 @@ ipx_output_type20(m) ipx->ipx_dna.x_net = dst.sipx_addr.x_net; m1 = m_copym(m, 0, M_COPYALL, M_DONTWAIT); - if(ipx->ipx_sum != 0xffff) { - int len = ntohs(ipx->ipx_len); - ipx->ipx_sum = 0; - len = ((len - 1) | 1) + 1; - ipx->ipx_sum = ipx_cksum(m, len); - } + if(ipx->ipx_sum != 0xffff) + ipx->ipx_sum = ipx_cksum(m, ntohs(ipx->ipx_len)); if(m1) { error = (*ifp->if_output)(ifp, m1, (struct sockaddr *)&dst, NULL); -- cgit v1.1