| version 1.160, 2002/11/10 19:52:16 |
version 1.161, 2002/11/12 01:38:09 |
| Line 1826 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| Line 1826 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| case IPCTL_MTUDISC: |
case IPCTL_MTUDISC: |
| error = sysctl_int(oldp, oldlenp, newp, newlen, |
error = sysctl_int(oldp, oldlenp, newp, newlen, |
| &ip_mtudisc); |
&ip_mtudisc); |
| if (ip_mtudisc != 0 && ip_mtudisc_timeout_q == NULL) { |
if (ip_mtudisc == 0) |
| ip_mtudisc_timeout_q = |
rt_timer_queue_remove_all(ip_mtudisc_timeout_q, TRUE); |
| rt_timer_queue_create(ip_mtudisc_timeout); |
|
| } else if (ip_mtudisc == 0 && ip_mtudisc_timeout_q != NULL) { |
|
| rt_timer_queue_destroy(ip_mtudisc_timeout_q, TRUE); |
|
| ip_mtudisc_timeout_q = NULL; |
|
| } |
|
| return error; |
return error; |
| case IPCTL_ANONPORTMIN: |
case IPCTL_ANONPORTMIN: |
| old = anonportmin; |
old = anonportmin; |
| Line 1868 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| Line 1863 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| ip_mtudisc_timeout = old; |
ip_mtudisc_timeout = old; |
| return (EINVAL); |
return (EINVAL); |
| } |
} |
| if (ip_mtudisc_timeout_q != NULL) |
rt_timer_queue_change(ip_mtudisc_timeout_q, ip_mtudisc_timeout); |
| rt_timer_queue_change(ip_mtudisc_timeout_q, |
|
| ip_mtudisc_timeout); |
|
| return (error); |
return (error); |
| #ifdef GATEWAY |
#ifdef GATEWAY |
| case IPCTL_MAXFLOWS: |
case IPCTL_MAXFLOWS: |