aboutsummaryrefslogtreecommitdiff
path: root/sys/i386
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2021-11-24 18:15:40 +0000
committerMark Johnston <markj@FreeBSD.org>2021-11-24 18:31:15 +0000
commit09100f936be0684aa8caef441b96345960fd9c72 (patch)
treecdbfcab119ed4fb38e637663fbbbda0e0f386223 /sys/i386
parent00dbcdbe0a5af49d76711a48a84a720ab4243a57 (diff)
downloadsrc-09100f936be0684aa8caef441b96345960fd9c72.tar.gz
src-09100f936be0684aa8caef441b96345960fd9c72.zip
netinet: Remove in_cksum_update()
It was never implemented on powerpc or riscv and appears to have been unused since it was added in 1998. No functional change intended. Reviewed by: kp, glebius, cy MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33093
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/include/in_cksum.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/sys/i386/include/in_cksum.h b/sys/i386/include/in_cksum.h
index 87c18ec4066d..a8214e97cd9a 100644
--- a/sys/i386/include/in_cksum.h
+++ b/sys/i386/include/in_cksum.h
@@ -83,14 +83,6 @@ in_cksum_hdr(const struct ip *ip)
return ~sum & 0xffff;
}
-
-static __inline void
-in_cksum_update(struct ip *ip)
-{
- int __tmpsum;
- __tmpsum = (int)ntohs(ip->ip_sum) + 256;
- ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16));
-}
#endif
static __inline u_short
@@ -123,17 +115,6 @@ in_pseudo(u_int sum, u_int b, u_int c)
sum -= 0xffff;
return (sum);
}
-
-#else
-#if defined(IPVERSION) && (IPVERSION == 4)
-#define in_cksum_update(ip) \
- do { \
- int __tmpsum; \
- __tmpsum = (int)ntohs(ip->ip_sum) + 256; \
- ip->ip_sum = htons(__tmpsum + (__tmpsum >> 16)); \
- } while(0)
-
-#endif
#endif
#ifdef _KERNEL