[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.94.2.4 and 1.94.2.5

version 1.94.2.4, 2007/05/07 10:56:04 version 1.94.2.5, 2007/05/17 13:41:51
Line 1654  sysctl_net_inet6_ip6_hashsize(SYSCTLFN_A
Line 1654  sysctl_net_inet6_ip6_hashsize(SYSCTLFN_A
 }  }
 #endif /* GATEWAY */  #endif /* GATEWAY */
   
 static int  
 sysctl_net_inet6_ip6_rht0(SYSCTLFN_ARGS)  
 {  
         int error, tmp;  
         struct sysctlnode node;  
   
         node = *rnode;  
         tmp = ip6_rht0;  
         node.sysctl_data = &tmp;  
         error = sysctl_lookup(SYSCTLFN_CALL(&node));  
         if (error || newp == NULL)  
                 return error;  
   
         switch (tmp) {  
         case -1:        /* disable processing */  
         case 0:         /* disable for host, enable for router */  
         case 1:         /* enable for all */  
                 break;  
         default:  
                 return EINVAL;  
         }  
         ip6_rht0 = tmp;  
         return 0;  
 }  
   
 /*  /*
  * System control for IP6   * System control for IP6
  */   */
Line 1978  SYSCTL_SETUP(sysctl_net_inet6_ip6_setup,
Line 1953  SYSCTL_SETUP(sysctl_net_inet6_ip6_setup,
                         CTL_NET, PF_INET6, IPPROTO_IPV6,                          CTL_NET, PF_INET6, IPPROTO_IPV6,
                         CTL_CREATE, CTL_EOL);                          CTL_CREATE, CTL_EOL);
 #endif  #endif
         sysctl_createv(clog, 0, NULL, NULL,  
                         CTLFLAG_PERMANENT|CTLFLAG_READWRITE,  
                         CTLTYPE_INT, "rht0",  
                         SYSCTL_DESCR("Processing of routing header type 0 (IPv6)"),  
                         sysctl_net_inet6_ip6_rht0, 0, &ip6_rht0, 0,  
                         CTL_NET, PF_INET6, IPPROTO_IPV6,  
                         CTL_CREATE, CTL_EOL);  
 }  }

Legend:
Removed from v.1.94.2.4  
changed lines
  Added in v.1.94.2.5

CVSweb <webmaster@jp.NetBSD.org>