Permalink
Browse files

oops, clear cksum field before computing

  • Loading branch information...
1 parent 3226aa1 commit 86e43bba0b55fa302006e6714deb563c6cb61409 itojun committed Mar 4, 2001
Showing with 2 additions and 1 deletion.
  1. +2 −1 kame/sys/netinet6/raw_ip6.c
@@ -1,4 +1,4 @@
-/* $KAME: raw_ip6.c,v 1.68 2001/03/04 15:55:14 itojun Exp $ */
+/* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -569,6 +569,7 @@ rip6_output(m, va_alist)
}
off += sizeof(struct ip6_hdr);
+ sum = 0;
m_copyback(m, off, sizeof(sum), (caddr_t)&sum);
sum = in6_cksum(m, ip6->ip6_nxt, sizeof(*ip6), plen);
m_copyback(m, off, sizeof(sum), (caddr_t)&sum);

0 comments on commit 86e43bb

Please sign in to comment.