diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-21 17:37:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-21 17:37:01 +0000 |
commit | 617a1a2db16392fb65ee684afc90506d7012038a (patch) | |
tree | 0aac5e62ab97b17555390316e551d0be8a808680 /cpukit/libnetworking | |
parent | changed version to 980821 (diff) | |
download | rtems-617a1a2db16392fb65ee684afc90506d7012038a.tar.bz2 |
Another missing piece. Thanks Eric.
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r-- | cpukit/libnetworking/netinet/in_cksum.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/libnetworking/netinet/in_cksum.c b/cpukit/libnetworking/netinet/in_cksum.c index f834d629d2..a2889f878a 100644 --- a/cpukit/libnetworking/netinet/in_cksum.c +++ b/cpukit/libnetworking/netinet/in_cksum.c @@ -203,6 +203,9 @@ in_cksum(m, len) * code and should be modified for each CPU to be as fast as possible. */ +#define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) +#define REDUCE \ + {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);} int in_cksum(m, len) |