version 1.156, 2002/09/11 02:41:19 |
version 1.159, 2002/11/02 07:28:12 |
|
|
printf("%s:%d: ipq already locked\n", __FILE__, __LINE__); \ |
printf("%s:%d: ipq already locked\n", __FILE__, __LINE__); \ |
panic("ipq_lock"); \ |
panic("ipq_lock"); \ |
} \ |
} \ |
} while (0) |
} while (/*CONSTCOND*/ 0) |
#define IPQ_LOCK_CHECK() \ |
#define IPQ_LOCK_CHECK() \ |
do { \ |
do { \ |
if (ipq_locked == 0) { \ |
if (ipq_locked == 0) { \ |
printf("%s:%d: ipq lock not held\n", __FILE__, __LINE__); \ |
printf("%s:%d: ipq lock not held\n", __FILE__, __LINE__); \ |
panic("ipq lock check"); \ |
panic("ipq lock check"); \ |
} \ |
} \ |
} while (0) |
} while (/*CONSTCOND*/ 0) |
#else |
#else |
#define IPQ_LOCK() (void) ipq_lock_try() |
#define IPQ_LOCK() (void) ipq_lock_try() |
#define IPQ_LOCK_CHECK() /* nothing */ |
#define IPQ_LOCK_CHECK() /* nothing */ |
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) |
if (ip_mtudisc_timeout < 0) { |
|
ip_mtudisc_timeout = old; |
return (EINVAL); |
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 1889 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 |
|
|