| version 1.114.4.9, 2002/11/10 19:58:05 |
version 1.114.4.10, 2002/11/13 00:34:59 |
| Line 1714 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| Line 1714 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 1751 ip_sysctl(name, namelen, oldp, oldlenp, |
|
| Line 1746 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); |
| #ifdef GATEWAY |
#ifdef GATEWAY |