diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-06-07 22:00:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-06-07 22:00:35 +0000 |
commit | 6f58780a6184cf619f657834b3e7ead2235ab291 (patch) | |
tree | d11d3943c960dc4d1bae629371a1b3e5e7b2bab1 /sys/netinet/ip_nat.c | |
parent | d515a8e6303faf856b96d9c4aee87efbb7629ca0 (diff) |
I do not believe this
Diffstat (limited to 'sys/netinet/ip_nat.c')
-rw-r--r-- | sys/netinet/ip_nat.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/netinet/ip_nat.c b/sys/netinet/ip_nat.c index 412cfbf2f5f..219d56b6bec 100644 --- a/sys/netinet/ip_nat.c +++ b/sys/netinet/ip_nat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_nat.c,v 1.20 1999/02/05 05:58:52 deraadt Exp $ */ +/* $OpenBSD: ip_nat.c,v 1.21 1999/06/07 22:00:34 deraadt Exp $ */ /* * Copyright (C) 1995-1998 by Darren Reed. * @@ -10,7 +10,7 @@ */ #if !defined(lint) static const char sccsid[] = "@(#)ip_nat.c 1.11 6/5/96 (C) 1995 Darren Reed"; -static const char rcsid[] = "@(#)$Id: ip_nat.c,v 1.20 1999/02/05 05:58:52 deraadt Exp $"; +static const char rcsid[] = "@(#)$Id: ip_nat.c,v 1.21 1999/06/07 22:00:34 deraadt Exp $"; #endif #if defined(__FreeBSD__) && defined(KERNEL) && !defined(_KERNEL) @@ -161,11 +161,7 @@ u_32_t n; if (!n) return; -#ifdef sparc - sum1 = (~(*sp)) & 0xffff; -#else sum1 = (~ntohs(*sp)) & 0xffff; -#endif sum1 += ~(n) & 0xffff; sum1 = (sum1 >> 16) + (sum1 & 0xffff); /* Again */ |