[BACK]Return to ip6_input.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/ip6_input.c between version 1.119.2.1 and 1.120

version 1.119.2.1, 2008/09/18 04:37:01 version 1.120, 2008/08/20 18:35:20
Line 1595  ip6_delaux(struct mbuf *m)
Line 1595  ip6_delaux(struct mbuf *m)
 static int  static int
 sysctl_net_inet6_ip6_maxflows(SYSCTLFN_ARGS)  sysctl_net_inet6_ip6_maxflows(SYSCTLFN_ARGS)
 {  {
         int error;          int error;
   
         error = sysctl_lookup(SYSCTLFN_CALL(rnode));          error = sysctl_lookup(SYSCTLFN_CALL(rnode));
         if (error || newp == NULL)          if (error || newp == NULL)
                 return (error);                  return (error);
   
         mutex_enter(softnet_lock);          mutex_enter(softnet_lock);
         KERNEL_LOCK(1, NULL);          KERNEL_LOCK_ONE(1, NULL);
   
         ip6flow_reap(0);          ip6flow_reap(0);
   
         KERNEL_UNLOCK_ONE(NULL);          KERNEL_UNLOCK_ONE(NULL);
         mutex_exit(softnet_lock);          mutex_exit(softnet_lock);
   
         return (0);          return (0);
 }  }
   
 static int  static int
Line 1630  sysctl_net_inet6_ip6_hashsize(SYSCTLFN_A
Line 1630  sysctl_net_inet6_ip6_hashsize(SYSCTLFN_A
                  * Can only fail due to malloc()                   * Can only fail due to malloc()
                  */                   */
                 mutex_enter(softnet_lock);                  mutex_enter(softnet_lock);
                 KERNEL_LOCK(1, NULL);                  KERNEL_LOCK_ONE(1, NULL);
   
                 error = ip6flow_invalidate_all(tmp);                  error = ip6flow_invalidate_all(tmp);
   
Line 1639  sysctl_net_inet6_ip6_hashsize(SYSCTLFN_A
Line 1639  sysctl_net_inet6_ip6_hashsize(SYSCTLFN_A
         } else {          } else {
                 /*                  /*
                  * EINVAL if not a power of 2                   * EINVAL if not a power of 2
                  */                   */
                 error = EINVAL;                  error = EINVAL;
         }          }
   

Legend:
Removed from v.1.119.2.1  
changed lines
  Added in v.1.120

CVSweb <webmaster@jp.NetBSD.org>