| version 1.150.4.2, 2002/11/12 14:44:11 |
version 1.150.4.3, 2003/06/17 11:55:53 |
| Line 1804 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| Line 1804 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 (error == 0 && 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 1841 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| Line 1836 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| case IPCTL_MTUDISCTIMEOUT: |
case IPCTL_MTUDISCTIMEOUT: |
| error = sysctl_int(oldp, oldlenp, newp, newlen, |
error = sysctl_int(oldp, oldlenp, newp, newlen, |
| &ip_mtudisc_timeout); |
&ip_mtudisc_timeout); |
| if (ip_mtudisc_timeout_q != NULL) |
if (error == 0) |
| rt_timer_queue_change(ip_mtudisc_timeout_q, |
rt_timer_queue_change(ip_mtudisc_timeout_q, |
| ip_mtudisc_timeout); |
ip_mtudisc_timeout); |
| return (error); |
return (error); |