[BACK]Return to in6_ifattach.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/in6_ifattach.c between version 1.69 and 1.70

version 1.69, 2007/02/22 08:52:57 version 1.70, 2007/03/15 23:26:04
Line 572  in6_ifattach_linklocal(ifp, altifp)
Line 572  in6_ifattach_linklocal(ifp, altifp)
   
         /*          /*
          * Now call in6_update_ifa() to do a bunch of procedures to configure           * Now call in6_update_ifa() to do a bunch of procedures to configure
          * a link-local address. We can set NULL to the 3rd argument, because           * a link-local address. We can set the 3rd argument to NULL, because
          * we know there's no other link-local address on the interface           * we know there's no other link-local address on the interface
          * and therefore we are adding one (instead of updating one).           * and therefore we are adding one (instead of updating one).
          */           */
Line 835  in6_ifattach(ifp, altifp)
Line 835  in6_ifattach(ifp, altifp)
          */           */
         if (ip6_auto_linklocal) {          if (ip6_auto_linklocal) {
                 ia = in6ifa_ifpforlinklocal(ifp, 0);                  ia = in6ifa_ifpforlinklocal(ifp, 0);
                 if (ia == NULL) {                  if (ia == NULL && in6_ifattach_linklocal(ifp, altifp) != 0) {
                         if (in6_ifattach_linklocal(ifp, altifp) == 0) {                          printf("%s: cannot assign link-local address\n",
                                 /* linklocal address assigned */                              ifp->if_xname);
                         } else {  
                                 /* failed to assign linklocal address. bark? */  
                         }  
                 }                  }
         }          }
 }  }

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

CVSweb <webmaster@jp.NetBSD.org>