[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.159 and 1.160

version 1.159, 2018/01/23 09:21:59 version 1.160, 2018/01/30 14:49:25
Line 257  rip6_input(struct mbuf **mp, int *offp, 
Line 257  rip6_input(struct mbuf **mp, int *offp, 
                 else {                  else {
                         int s;                          int s;
                         struct ifnet *rcvif = m_get_rcvif(m, &s);                          struct ifnet *rcvif = m_get_rcvif(m, &s);
                         u_int8_t *prvnxtp = ip6_get_prevhdr(m, *offp); /* XXX */                          const int prvnxt = ip6_get_prevhdr(m, *offp);
                         in6_ifstat_inc(rcvif, ifs6_in_protounknown);                          in6_ifstat_inc(rcvif, ifs6_in_protounknown);
                         m_put_rcvif(rcvif, &s);                          m_put_rcvif(rcvif, &s);
                         icmp6_error(m, ICMP6_PARAM_PROB,                          icmp6_error(m, ICMP6_PARAM_PROB,
                             ICMP6_PARAMPROB_NEXTHEADER,                              ICMP6_PARAMPROB_NEXTHEADER,
                             prvnxtp - mtod(m, u_int8_t *));                              prvnxt);
                 }                  }
                 IP6_STATDEC(IP6_STAT_DELIVERED);                  IP6_STATDEC(IP6_STAT_DELIVERED);
         }          }

Legend:
Removed from v.1.159  
changed lines
  Added in v.1.160

CVSweb <webmaster@jp.NetBSD.org>