summaryrefslogtreecommitdiffstats
path: root/lib/libalias
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-08-31 12:54:55 +0000
committerru <ru@FreeBSD.org>2000-08-31 12:54:55 +0000
commite01f2b2835ce6ed469eae34a9d6ffc27168dca34 (patch)
tree741ef989d9e9a05f53473d84a714089c8108dc72 /lib/libalias
parent5feb1713feb5366d159faaad92b078dd47c87625 (diff)
downloadFreeBSD-src-e01f2b2835ce6ed469eae34a9d6ffc27168dca34.zip
FreeBSD-src-e01f2b2835ce6ed469eae34a9d6ffc27168dca34.tar.gz
Grab ADJUST_CHECKSUM() macro from alias_local.h.
Diffstat (limited to 'lib/libalias')
-rw-r--r--lib/libalias/alias_nbt.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/libalias/alias_nbt.c b/lib/libalias/alias_nbt.c
index b5afedf..065fe37 100644
--- a/lib/libalias/alias_nbt.c
+++ b/lib/libalias/alias_nbt.c
@@ -44,23 +44,6 @@
#include "alias_local.h"
-#define ADJUST_CHECKSUM(acc, cksum) { \
- acc += cksum; \
- if (acc < 0) \
- { \
- acc = -acc; \
- acc = (acc >> 16) + (acc & 0xffff); \
- acc += acc >> 16; \
- cksum = (u_short) ~acc; \
- } \
- else \
- { \
- acc = (acc >> 16) + (acc & 0xffff); \
- acc += acc >> 16; \
- cksum = (u_short) acc; \
- } \
-}
-
typedef struct {
struct in_addr oldaddr;
u_short oldport;
OpenPOWER on IntegriCloud