[BACK]Return to nd6_nbr.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/nd6_nbr.c between version 1.83 and 1.84

version 1.83, 2008/02/27 19:40:56 version 1.84, 2008/04/08 15:04:35
Line 115  nd6_ns_input(struct mbuf *m, int off, in
Line 115  nd6_ns_input(struct mbuf *m, int off, in
   
         IP6_EXTHDR_GET(nd_ns, struct nd_neighbor_solicit *, m, off, icmp6len);          IP6_EXTHDR_GET(nd_ns, struct nd_neighbor_solicit *, m, off, icmp6len);
         if (nd_ns == NULL) {          if (nd_ns == NULL) {
                 icmp6stat.icp6s_tooshort++;                  icmp6stat[ICMP6_STAT_TOOSHORT]++;
                 return;                  return;
         }          }
         ip6 = mtod(m, struct ip6_hdr *); /* adjust pointer for safety */          ip6 = mtod(m, struct ip6_hdr *); /* adjust pointer for safety */
Line 322  nd6_ns_input(struct mbuf *m, int off, in
Line 322  nd6_ns_input(struct mbuf *m, int off, in
         nd6log((LOG_ERR, "nd6_ns_input: src=%s\n", ip6_sprintf(&saddr6)));          nd6log((LOG_ERR, "nd6_ns_input: src=%s\n", ip6_sprintf(&saddr6)));
         nd6log((LOG_ERR, "nd6_ns_input: dst=%s\n", ip6_sprintf(&daddr6)));          nd6log((LOG_ERR, "nd6_ns_input: dst=%s\n", ip6_sprintf(&daddr6)));
         nd6log((LOG_ERR, "nd6_ns_input: tgt=%s\n", ip6_sprintf(&taddr6)));          nd6log((LOG_ERR, "nd6_ns_input: tgt=%s\n", ip6_sprintf(&taddr6)));
         icmp6stat.icp6s_badns++;          icmp6stat[ICMP6_STAT_BADNS]++;
         m_freem(m);          m_freem(m);
 }  }
   
Line 514  nd6_ns_output(struct ifnet *ifp, const s
Line 514  nd6_ns_output(struct ifnet *ifp, const s
         ip6_output(m, NULL, &ro, dad ? IPV6_UNSPECSRC : 0, &im6o, NULL, NULL);          ip6_output(m, NULL, &ro, dad ? IPV6_UNSPECSRC : 0, &im6o, NULL, NULL);
         icmp6_ifstat_inc(ifp, ifs6_out_msg);          icmp6_ifstat_inc(ifp, ifs6_out_msg);
         icmp6_ifstat_inc(ifp, ifs6_out_neighborsolicit);          icmp6_ifstat_inc(ifp, ifs6_out_neighborsolicit);
         icmp6stat.icp6s_outhist[ND_NEIGHBOR_SOLICIT]++;          icmp6stat[ICMP6_STAT_OUTHIST + ND_NEIGHBOR_SOLICIT]++;
   
         rtcache_free(&ro);          rtcache_free(&ro);
         return;          return;
Line 568  nd6_na_input(struct mbuf *m, int off, in
Line 568  nd6_na_input(struct mbuf *m, int off, in
   
         IP6_EXTHDR_GET(nd_na, struct nd_neighbor_advert *, m, off, icmp6len);          IP6_EXTHDR_GET(nd_na, struct nd_neighbor_advert *, m, off, icmp6len);
         if (nd_na == NULL) {          if (nd_na == NULL) {
                 icmp6stat.icp6s_tooshort++;                  icmp6stat[ICMP6_STAT_TOOSHORT]++;
                 return;                  return;
         }          }
   
Line 805  nd6_na_input(struct mbuf *m, int off, in
Line 805  nd6_na_input(struct mbuf *m, int off, in
         return;          return;
   
  bad:   bad:
         icmp6stat.icp6s_badna++;          icmp6stat[ICMP6_STAT_BADNA]++;
         m_freem(m);          m_freem(m);
 }  }
   
Line 971  nd6_na_output(
Line 971  nd6_na_output(
   
         icmp6_ifstat_inc(ifp, ifs6_out_msg);          icmp6_ifstat_inc(ifp, ifs6_out_msg);
         icmp6_ifstat_inc(ifp, ifs6_out_neighboradvert);          icmp6_ifstat_inc(ifp, ifs6_out_neighboradvert);
         icmp6stat.icp6s_outhist[ND_NEIGHBOR_ADVERT]++;          icmp6stat[ICMP6_STAT_OUTHIST + ND_NEIGHBOR_ADVERT]++;
   
         rtcache_free(&ro);          rtcache_free(&ro);
         return;          return;

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.84

CVSweb <webmaster@jp.NetBSD.org>