[BACK]Return to in6.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.c between version 1.32 and 1.32.4.1

version 1.32, 2000/04/27 16:44:19 version 1.32.4.1, 2000/07/13 14:59:50
Line 1 
Line 1 
 /*      $NetBSD$        */  /*      $NetBSD$        */
 /*      $KAME: in6.c,v 1.75 2000/04/12 03:51:29 itojun Exp $    */  /*      $KAME: in6.c,v 1.99 2000/07/11 17:00:58 jinmei Exp $    */
   
 /*  /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.   * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Line 174  in6_ifloop_request(int cmd, struct ifadd
Line 174  in6_ifloop_request(int cmd, struct ifadd
 {  {
         struct sockaddr_in6 lo_sa;          struct sockaddr_in6 lo_sa;
         struct sockaddr_in6 all1_sa;          struct sockaddr_in6 all1_sa;
         struct rtentry *nrt = NULL;          struct rtentry *nrt = NULL, **nrtp = NULL;
   
         bzero(&lo_sa, sizeof(lo_sa));          bzero(&lo_sa, sizeof(lo_sa));
         bzero(&all1_sa, sizeof(all1_sa));          bzero(&all1_sa, sizeof(all1_sa));
Line 184  in6_ifloop_request(int cmd, struct ifadd
Line 184  in6_ifloop_request(int cmd, struct ifadd
         lo_sa.sin6_addr = in6addr_loopback;          lo_sa.sin6_addr = in6addr_loopback;
         all1_sa.sin6_addr = in6mask128;          all1_sa.sin6_addr = in6mask128;
   
         /* So we add or remove static loopback entry, here. */          /*
            * So we add or remove static loopback entry, here.
            * This request for deletion could fail, e.g. when we remove
            * an address right after adding it.
            */
           if (cmd == RTM_ADD)
                   nrtp = &nrt;
         rtrequest(cmd, ifa->ifa_addr,          rtrequest(cmd, ifa->ifa_addr,
                   (struct sockaddr *)&lo_sa,                    (struct sockaddr *)&lo_sa,
                   (struct sockaddr *)&all1_sa,                    (struct sockaddr *)&all1_sa,
                   RTF_UP|RTF_HOST, &nrt);                    RTF_UP|RTF_HOST, nrtp);
   
         /*          /*
          * Make sure rt_ifa be equal to IFA, the second argument of the           * Make sure rt_ifa be equal to IFA, the second argument of the

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.32.4.1

CVSweb <webmaster@jp.NetBSD.org>