| version 1.183, 2003/11/17 22:34:16 |
version 1.184, 2003/11/19 18:39:34 |
|
|
| #include <sys/cdefs.h> |
#include <sys/cdefs.h> |
| __KERNEL_RCSID(0, "$NetBSD$"); |
__KERNEL_RCSID(0, "$NetBSD$"); |
| |
|
| |
#include "opt_inet.h" |
| #include "opt_gateway.h" |
#include "opt_gateway.h" |
| #include "opt_pfil_hooks.h" |
#include "opt_pfil_hooks.h" |
| #include "opt_ipsec.h" |
#include "opt_ipsec.h" |
| Line 197 int ip_mtudisc_timeout = IPMTUDISCTIMEOU |
|
| Line 198 int ip_mtudisc_timeout = IPMTUDISCTIMEOU |
|
| #ifdef DIAGNOSTIC |
#ifdef DIAGNOSTIC |
| int ipprintfs = 0; |
int ipprintfs = 0; |
| #endif |
#endif |
| |
|
| |
#ifdef RANDOM_IP_ID |
| |
int ip_do_randomid = 0; |
| |
#endif |
| |
|
| /* |
/* |
| * XXX - Setting ip_checkinterface mostly implements the receive side of |
* XXX - Setting ip_checkinterface mostly implements the receive side of |
| * the Strong ES model described in RFC 1122, but since the routing table |
* the Strong ES model described in RFC 1122, but since the routing table |
| Line 2066 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| Line 2072 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| return (sysctl_ifq(name + 1, namelen - 1, oldp, oldlenp, |
return (sysctl_ifq(name + 1, namelen - 1, oldp, oldlenp, |
| newp, newlen, &ipintrq)); |
newp, newlen, &ipintrq)); |
| |
|
| |
case IPCTL_RANDOMID: |
| |
#ifdef RANDOM_IP_ID |
| |
return (sysctl_int(oldp, oldlenp, newp, newlen, |
| |
&ip_do_randomid)); |
| |
#else |
| |
return (sysctl_rdint(oldp, oldlenp, newp, newlen, 0)); |
| |
#endif |
| |
|
| default: |
default: |
| return (EOPNOTSUPP); |
return (EOPNOTSUPP); |
| } |
} |