| version 1.135.2.5, 2002/09/06 08:49:14 |
version 1.135.2.6, 2002/10/10 18:43:59 |
| Line 192 int ip_forwsrcrt = IPFORWSRCRT; |
|
| Line 192 int ip_forwsrcrt = IPFORWSRCRT; |
|
| int ip_directedbcast = IPDIRECTEDBCAST; |
int ip_directedbcast = IPDIRECTEDBCAST; |
| int ip_allowsrcrt = IPALLOWSRCRT; |
int ip_allowsrcrt = IPALLOWSRCRT; |
| int ip_mtudisc = IPMTUDISC; |
int ip_mtudisc = IPMTUDISC; |
| u_int ip_mtudisc_timeout = IPMTUDISCTIMEOUT; |
int ip_mtudisc_timeout = IPMTUDISCTIMEOUT; |
| #ifdef DIAGNOSTIC |
#ifdef DIAGNOSTIC |
| int ipprintfs = 0; |
int ipprintfs = 0; |
| #endif |
#endif |
| Line 1863 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| Line 1863 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| } |
} |
| return (error); |
return (error); |
| case IPCTL_MTUDISCTIMEOUT: |
case IPCTL_MTUDISCTIMEOUT: |
| |
old = ip_mtudisc_timeout; |
| error = sysctl_int(oldp, oldlenp, newp, newlen, |
error = sysctl_int(oldp, oldlenp, newp, newlen, |
| &ip_mtudisc_timeout); |
&ip_mtudisc_timeout); |
| |
if (ip_mtudisc_timeout < 0) { |
| |
ip_mtudisc_timeout = old; |
| |
return (EINVAL); |
| |
} |
| if (ip_mtudisc_timeout_q != NULL) |
if (ip_mtudisc_timeout_q != NULL) |
| rt_timer_queue_change(ip_mtudisc_timeout_q, |
rt_timer_queue_change(ip_mtudisc_timeout_q, |
| ip_mtudisc_timeout); |
ip_mtudisc_timeout); |
| Line 1887 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| Line 1892 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| &hostzeroisbroadcast)); |
&hostzeroisbroadcast)); |
| #if NGIF > 0 |
#if NGIF > 0 |
| case IPCTL_GIF_TTL: |
case IPCTL_GIF_TTL: |
| return(sysctl_int(oldp, oldlenp, newp, newlen, |
return (sysctl_int(oldp, oldlenp, newp, newlen, |
| &ip_gif_ttl)); |
&ip_gif_ttl)); |
| #endif |
#endif |
| |
|
| #if NGRE > 0 |
#if NGRE > 0 |
| case IPCTL_GRE_TTL: |
case IPCTL_GRE_TTL: |
| return(sysctl_int(oldp, oldlenp, newp, newlen, |
return (sysctl_int(oldp, oldlenp, newp, newlen, |
| &ip_gre_ttl)); |
&ip_gre_ttl)); |
| #endif |
#endif |
| |
|