OpenBSD cvs log

created 2022-04-23T23:09:28Z
begin 2022-04-20T00:00:00Z
end 2022-04-21T00:00:00Z
path src/sys
commits 5

date 2022-04-20T09:38:25Z
author bluhm
files src/sys/net/route.c log diff annotate
message Route timeout was a mixture of int, u_int and long. Use type int
for timeout, add sysctl bounds checking between 0 and max int, and
use time_t for absolute times.

Some code assumes that the route timeout queue can be NULL and at
some places this was checked. Better make sure that all queues
always exist. The pool_get for struct rttimer_queue is only called
from initialization and from syscall, so PR_WAITOK is possible.

Keep the special hack when ip_mtudisc is set to 0. Destroy the
queue and generate an empty one.

If redirect timeout is 0, it should not time out. Check the value
in IPv6 to make the behavior like IPv4.

Sysctl net.inet6.icmp6.redirtimeout had no effect as the queue
timeout was not modified. Make icmp6_sysctl() look like icmp_sysctl().

OK claudio@

date 2022-04-20T09:38:26Z
author bluhm
files src/sys/net/route.h log diff annotate
src/sys/netinet/ip_icmp.c log diff annotate
src/sys/netinet/ip_input.c log diff annotate
src/sys/netinet/ip_var.h log diff annotate
src/sys/netinet6/icmp6.c log diff annotate
src/sys/netinet6/ip6_input.c log diff annotate
message Route timeout was a mixture of int, u_int and long. Use type int
for timeout, add sysctl bounds checking between 0 and max int, and
use time_t for absolute times.

Some code assumes that the route timeout queue can be NULL and at
some places this was checked. Better make sure that all queues
always exist. The pool_get for struct rttimer_queue is only called
from initialization and from syscall, so PR_WAITOK is possible.

Keep the special hack when ip_mtudisc is set to 0. Destroy the
queue and generate an empty one.

If redirect timeout is 0, it should not time out. Check the value
in IPv6 to make the behavior like IPv4.

Sysctl net.inet6.icmp6.redirtimeout had no effect as the queue
timeout was not modified. Make icmp6_sysctl() look like icmp_sysctl().

OK claudio@

date 2022-04-20T14:21:56Z
author deraadt
files src/sys/arch/hppa/hppa/conf.c log diff annotate
message repair kstat entry

date 2022-04-20T17:58:22Z
author bluhm
files src/sys/net/route.c log diff annotate
src/sys/net/route.h log diff annotate
message Fix white space and wrap long lines.

date 2022-04-20T20:51:09Z
author bluhm
files src/sys/net/if_pfsync.c log diff annotate
message In pfsync there were some KASSERT hidden behind #ifdef PFSYNC_DEBUG.
Assertions should be active and rely on #ifdef DIAGNOSTIC. Retire
PFSYNC_DEBUG.
OK sashan@ dlg@