Skip to content

Commit

Permalink
oops, clear cksum field before computing
Browse files Browse the repository at this point in the history
  • Loading branch information
itojun committed Mar 4, 2001
1 parent 3226aa1 commit 86e43bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kame/sys/netinet6/raw_ip6.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 86e43bb

Please sign in to comment.