[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.70 and 1.71

version 1.70, 2007/02/17 22:34:15 version 1.71, 2007/03/04 06:03:27
Line 356  nd6_ns_output(ifp, daddr6, taddr6, ln, d
Line 356  nd6_ns_output(ifp, daddr6, taddr6, ln, d
         struct ip6_moptions im6o;          struct ip6_moptions im6o;
         int icmp6len;          int icmp6len;
         int maxlen;          int maxlen;
         caddr_t mac;          void *mac;
         struct route_in6 ro;          struct route_in6 ro;
   
         memset(&ro, 0, sizeof(ro));          memset(&ro, 0, sizeof(ro));
Line 511  nd6_ns_output(ifp, daddr6, taddr6, ln, d
Line 511  nd6_ns_output(ifp, daddr6, taddr6, ln, d
                 m->m_pkthdr.len += optlen;                  m->m_pkthdr.len += optlen;
                 m->m_len += optlen;                  m->m_len += optlen;
                 icmp6len += optlen;                  icmp6len += optlen;
                 bzero((caddr_t)nd_opt, optlen);                  bzero((void *)nd_opt, optlen);
                 nd_opt->nd_opt_type = ND_OPT_SOURCE_LINKADDR;                  nd_opt->nd_opt_type = ND_OPT_SOURCE_LINKADDR;
                 nd_opt->nd_opt_len = optlen >> 3;                  nd_opt->nd_opt_len = optlen >> 3;
                 bcopy(mac, (caddr_t)(nd_opt + 1), ifp->if_addrlen);                  bcopy(mac, (void *)(nd_opt + 1), ifp->if_addrlen);
         }          }
   
         ip6->ip6_plen = htons((u_int16_t)icmp6len);          ip6->ip6_plen = htons((u_int16_t)icmp6len);
Line 867  nd6_na_output(ifp, daddr6_0, taddr6, fla
Line 867  nd6_na_output(ifp, daddr6_0, taddr6, fla
         struct sockaddr_in6 dst_sa;          struct sockaddr_in6 dst_sa;
         struct in6_addr *src, daddr6;          struct in6_addr *src, daddr6;
         int icmp6len, maxlen, error;          int icmp6len, maxlen, error;
         caddr_t mac;          void *mac;
         struct route_in6 ro;          struct route_in6 ro;
   
         mac = NULL;          mac = NULL;
Line 985  nd6_na_output(ifp, daddr6_0, taddr6, fla
Line 985  nd6_na_output(ifp, daddr6_0, taddr6, fla
                 m->m_pkthdr.len += optlen;                  m->m_pkthdr.len += optlen;
                 m->m_len += optlen;                  m->m_len += optlen;
                 icmp6len += optlen;                  icmp6len += optlen;
                 bzero((caddr_t)nd_opt, optlen);                  bzero((void *)nd_opt, optlen);
                 nd_opt->nd_opt_type = ND_OPT_TARGET_LINKADDR;                  nd_opt->nd_opt_type = ND_OPT_TARGET_LINKADDR;
                 nd_opt->nd_opt_len = optlen >> 3;                  nd_opt->nd_opt_len = optlen >> 3;
                 bcopy(mac, (caddr_t)(nd_opt + 1), ifp->if_addrlen);                  bcopy(mac, (void *)(nd_opt + 1), ifp->if_addrlen);
         } else          } else
                 flags &= ~ND_NA_FLAG_OVERRIDE;                  flags &= ~ND_NA_FLAG_OVERRIDE;
   
Line 1013  nd6_na_output(ifp, daddr6_0, taddr6, fla
Line 1013  nd6_na_output(ifp, daddr6_0, taddr6, fla
         return;          return;
 }  }
   
 caddr_t  void *
 nd6_ifptomac(ifp)  nd6_ifptomac(ifp)
         struct ifnet *ifp;          struct ifnet *ifp;
 {  {

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71

CVSweb <webmaster@jp.NetBSD.org>