[BACK]Return to nd6_rtr.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_rtr.c between version 1.3 and 1.4

version 1.3, 1999/07/03 21:30:19 version 1.4, 1999/07/04 02:01:15
Line 408  defrouter_addreq(new)
Line 408  defrouter_addreq(new)
         gate.sin6_addr = new->rtaddr;          gate.sin6_addr = new->rtaddr;
   
 #if 1  #if 1
         s = splnet();          s = splsoftnet();
         (void)rtrequest(RTM_ADD, (struct sockaddr *)&def,          (void)rtrequest(RTM_ADD, (struct sockaddr *)&def,
                 (struct sockaddr *)&gate, (struct sockaddr *)&mask,                  (struct sockaddr *)&gate, (struct sockaddr *)&mask,
                 RTF_GATEWAY, NULL);                  RTF_GATEWAY, NULL);
Line 421  defrouter_addreq(new)
Line 421  defrouter_addreq(new)
         if ((rnh = rt_tables[AF_INET6]) == 0)          if ((rnh = rt_tables[AF_INET6]) == 0)
                 return;                  return;
   
         s = splnet();          s = splsoftnet();
 #if 0  #if 0
         R_Malloc(rt, struct rtentry *, sizeof(*rt));          R_Malloc(rt, struct rtentry *, sizeof(*rt));
 #else  #else
Line 549  defrtrlist_update(new)
Line 549  defrtrlist_update(new)
         struct nd_defrouter *new;          struct nd_defrouter *new;
 {  {
         struct nd_defrouter *dr, *n;          struct nd_defrouter *dr, *n;
         int s = splnet();          int s = splsoftnet();
   
         if ((dr = defrouter_lookup(&new->rtaddr, new->ifp)) != NULL) {          if ((dr = defrouter_lookup(&new->rtaddr, new->ifp)) != NULL) {
                 /* entry exists */                  /* entry exists */
Line 679  prelist_add(pr, dr)
Line 679  prelist_add(pr, dr)
   
         /* xxx ND_OPT_PI_FLAG_ONLINK processing */          /* xxx ND_OPT_PI_FLAG_ONLINK processing */
   
         s = splnet();          s = splsoftnet();
         /* link ndpr_entry to if_prefixlist */          /* link ndpr_entry to if_prefixlist */
         {          {
                 struct ifnet *ifp = new->ndpr_ifp;                  struct ifnet *ifp = new->ndpr_ifp;
Line 710  prelist_remove(pr)
Line 710  prelist_remove(pr)
         struct nd_pfxrouter *pfr, *next;          struct nd_pfxrouter *pfr, *next;
         int s;          int s;
   
         s = splnet();          s = splsoftnet();
         /* unlink ndpr_entry from if_prefixlist */          /* unlink ndpr_entry from if_prefixlist */
         {          {
                 struct ifnet *ifp = pr->ndpr_ifp;                  struct ifnet *ifp = pr->ndpr_ifp;
Line 757  prelist_update(new, dr, m)
Line 757  prelist_update(new, dr, m)
 {  {
         struct in6_ifaddr *ia6 = NULL;          struct in6_ifaddr *ia6 = NULL;
         struct nd_prefix *pr;          struct nd_prefix *pr;
         int s = splnet();          int s = splsoftnet();
         int error = 0;          int error = 0;
         int auth;          int auth;
         struct in6_addrlifetime *lt6;          struct in6_addrlifetime *lt6;
Line 1463  rt6_flush(gateway, ifp)
Line 1463  rt6_flush(gateway, ifp)
     struct ifnet *ifp;      struct ifnet *ifp;
 {  {
         struct radix_node_head *rnh = rt_tables[AF_INET6];          struct radix_node_head *rnh = rt_tables[AF_INET6];
         int s = splnet();          int s = splsoftnet();
   
         /* We'll care only link-local addresses */          /* We'll care only link-local addresses */
         if (!IN6_IS_ADDR_LINKLOCAL(gateway)) {          if (!IN6_IS_ADDR_LINKLOCAL(gateway)) {

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

CVSweb <webmaster@jp.NetBSD.org>