summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2003-07-18 06:48:05 +0000
committeritojun <itojun@openbsd.org>2003-07-18 06:48:05 +0000
commit57980fe3b3189ff56fd680c7192927ec829a51ce (patch)
tree2838298cd2df75bd498f33b73ac66103eaaa3e5b
parentFix for builds with NOPROFILE set. PR3354, ok pval@. (diff)
downloadwireguard-openbsd-57980fe3b3189ff56fd680c7192927ec829a51ce.tar.xz
wireguard-openbsd-57980fe3b3189ff56fd680c7192927ec829a51ce.zip
remove #if 0 portion
-rw-r--r--sys/netinet6/in6_cksum.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/sys/netinet6/in6_cksum.c b/sys/netinet6/in6_cksum.c
index b2869d01063..52bc1cce9f7 100644
--- a/sys/netinet6/in6_cksum.c
+++ b/sys/netinet6/in6_cksum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_cksum.c,v 1.11 2003/06/02 23:28:15 millert Exp $ */
+/* $OpenBSD: in6_cksum.c,v 1.12 2003/07/18 06:48:05 itojun Exp $ */
/* $KAME: in6_cksum.c,v 1.10 2000/12/03 00:53:59 itojun Exp $ */
/*
@@ -94,9 +94,6 @@ in6_cksum(m, nxt, off, len)
int sum = 0;
int mlen = 0;
int byte_swapped = 0;
-#if 0
- int srcifid = 0, dstifid = 0;
-#endif
struct ip6_hdr *ip6;
union {
u_int16_t phs[4];
@@ -127,16 +124,6 @@ in6_cksum(m, nxt, off, len)
* First create IP6 pseudo header and calculate a summary.
*/
ip6 = mtod(m, struct ip6_hdr *);
-#if 0
- if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) {
- srcifid = ip6->ip6_src.s6_addr16[1];
- ip6->ip6_src.s6_addr16[1] = 0;
- }
- if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) {
- dstifid = ip6->ip6_dst.s6_addr16[1];
- ip6->ip6_dst.s6_addr16[1] = 0;
- }
-#endif
w = (u_int16_t *)&ip6->ip6_src;
uph.ph.ph_len = htonl(len);
uph.ph.ph_nxt = nxt;
@@ -157,12 +144,6 @@ in6_cksum(m, nxt, off, len)
sum += uph.phs[0]; sum += uph.phs[1];
sum += uph.phs[2]; sum += uph.phs[3];
-#if 0
- if (srcifid)
- ip6->ip6_src.s6_addr16[1] = srcifid;
- if (dstifid)
- ip6->ip6_dst.s6_addr16[1] = dstifid;
-#endif
/*
* Secondly calculate a summary of the first mbuf excluding offset.
*/