Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet6/ip6_input.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/netinet6/ip6_input.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.119.2.1 retrieving revision 1.120 diff -u -p -r1.119.2.1 -r1.120 --- src/sys/netinet6/ip6_input.c 2008/09/18 04:37:01 1.119.2.1 +++ src/sys/netinet6/ip6_input.c 2008/08/20 18:35:20 1.120 @@ -1,4 +1,4 @@ -/* $NetBSD: ip6_input.c,v 1.119.2.1 2008/09/18 04:37:01 wrstuden Exp $ */ +/* $NetBSD: ip6_input.c,v 1.120 2008/08/20 18:35:20 matt Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -62,7 +62,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.119.2.1 2008/09/18 04:37:01 wrstuden Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.120 2008/08/20 18:35:20 matt Exp $"); #include "opt_inet.h" #include "opt_inet6.h" @@ -1595,21 +1595,21 @@ ip6_delaux(struct mbuf *m) static int sysctl_net_inet6_ip6_maxflows(SYSCTLFN_ARGS) { - int error; + int error; - error = sysctl_lookup(SYSCTLFN_CALL(rnode)); - if (error || newp == NULL) - return (error); + error = sysctl_lookup(SYSCTLFN_CALL(rnode)); + if (error || newp == NULL) + return (error); - mutex_enter(softnet_lock); - KERNEL_LOCK(1, NULL); + mutex_enter(softnet_lock); + KERNEL_LOCK_ONE(1, NULL); - ip6flow_reap(0); + ip6flow_reap(0); KERNEL_UNLOCK_ONE(NULL); - mutex_exit(softnet_lock); + mutex_exit(softnet_lock); - return (0); + return (0); } static int @@ -1630,7 +1630,7 @@ sysctl_net_inet6_ip6_hashsize(SYSCTLFN_A * Can only fail due to malloc() */ mutex_enter(softnet_lock); - KERNEL_LOCK(1, NULL); + KERNEL_LOCK_ONE(1, NULL); error = ip6flow_invalidate_all(tmp); @@ -1639,7 +1639,7 @@ sysctl_net_inet6_ip6_hashsize(SYSCTLFN_A } else { /* * EINVAL if not a power of 2 - */ + */ error = EINVAL; }