[BACK]Return to raw_ip6.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / netinet6

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/netinet6/raw_ip6.c between version 1.136.6.1 and 1.136.6.2

version 1.136.6.1, 2018/01/30 18:31:53 version 1.136.6.2, 2018/04/01 09:14:45
Line 476  rip6_output(struct mbuf *m, struct socke
Line 476  rip6_output(struct mbuf *m, struct socke
   
         if (so->so_proto->pr_protocol == IPPROTO_ICMPV6 ||          if (so->so_proto->pr_protocol == IPPROTO_ICMPV6 ||
             in6p->in6p_cksum != -1) {              in6p->in6p_cksum != -1) {
                   const uint8_t nxt = ip6->ip6_nxt;
                 int off;                  int off;
                 u_int16_t sum;                  u_int16_t sum;
   
Line 497  rip6_output(struct mbuf *m, struct socke
Line 498  rip6_output(struct mbuf *m, struct socke
                         error = ENOBUFS;                          error = ENOBUFS;
                         goto bad;                          goto bad;
                 }                  }
                 sum = in6_cksum(m, ip6->ip6_nxt, sizeof(*ip6), plen);                  sum = in6_cksum(m, nxt, sizeof(*ip6), plen);
                 m = m_copyback_cow(m, off, sizeof(sum), (void *)&sum,                  m = m_copyback_cow(m, off, sizeof(sum), (void *)&sum,
                     M_DONTWAIT);                      M_DONTWAIT);
                 if (m == NULL) {                  if (m == NULL) {

Legend:
Removed from v.1.136.6.1  
changed lines
  Added in v.1.136.6.2

CVSweb <webmaster@jp.NetBSD.org>