OpenBSD cvs log

created 2020-08-30T08:37:19Z
begin 2020-08-24T00:00:00Z
end 2020-08-25T00:00:00Z
path src/sys
commits 9

date 2020-08-24T10:02:07Z
author mvs
files src/sys/nfs/nfs_boot.c log diff annotate
message According the code `nfsbootdevname' is always set to network device name
we expected. Remove the `else' path from nfs_boot_init(). If
`nfsbootdevname' is not set something goes wrong and this is the panic
condition. Also we exclude the case where we can get `ifp' which we don't
expect.

OK mpi@

date 2020-08-24T13:20:34Z
author kettenis
files src/sys/arch/powerpc64/conf/BOOT log diff annotate
src/sys/arch/powerpc64/conf/GENERIC log diff annotate
src/sys/arch/powerpc64/conf/RAMDISK log diff annotate
message Add some USB HID devices.

date 2020-08-24T15:06:10Z
author kettenis
files src/sys/dev/ic/rtsxreg.h log diff annotate
src/sys/dev/sdmmc/sdmmc.c log diff annotate
src/sys/dev/sdmmc/sdmmc_mem.c log diff annotate
src/sys/dev/sdmmc/sdmmcreg.h log diff annotate
message Implement UHS-I support in the sdmmc(4) midlayer.

ok mglocker@

date 2020-08-24T15:15:08Z
author kettenis
files src/sys/dev/fdt/amlmmc.c log diff annotate
message Enable UHS-I support. No SDR104 support though since it doesn't seem to work
reliably.

date 2020-08-24T15:21:25Z
author kettenis
files src/sys/arch/powerpc64/conf/BOOT log diff annotate
message Enable xicp(4) here as well.

date 2020-08-24T15:30:58Z
author kn
files src/sys/net/if_pfsync.c log diff annotate
src/sys/net/pf_ioctl.c log diff annotate
src/sys/net/pfvar.h log diff annotate
message Remove ptr_array from struct pf_ruleset

Each ruleset's rules are stored in a TAILQ called "ptr" with "rcount"
representing the number of rules in the ruleset; "ptr_array" points to an
array of the same length.

"ptr" is backed by pool_get(9) and may change in size as "expired" rules
get removed from the ruleset - see "once" in pf.conf(5).

"ptr_array" is allocated momentarily through mallocarray(9) and gets filled
with the TAILQ entries, so that the sole user pfsync(4) can access the list
of rules by index to pick the n-th rule during state insertion.

Remove "ptr_array" and make pfsync iterate over the TAILQ instead to get the
matching rule's index. This simplifies both code and data structures and
avoids duplicate memory management.

OK sashan

date 2020-08-24T15:41:15Z
author kn
files src/sys/net/pf_ioctl.c log diff annotate
message Rehash main ruleset after rule expiration

When "once" rules expire, they are removed from the active ruleset,
hence the main ruleset needs to be rehashed iff itself contains once rules.

After the previous commit, pf_setup_pfsync_matching() became much simpler
but its name even less accurate; simplify it further and rename it to
pf_calc_chksum() while here.

Admins using "once" rules in combination with pfsync(4) are hopefully aware
of this caveat (self-changing rulesets) already, but now the checksum in
"pfctl -v -s info" actually indicates out-of-sync rulesets and is no longer
misleading.

OK sashan

date 2020-08-24T16:00:31Z
author gnezdo
files src/sys/netinet/ip_divert.c log diff annotate
src/sys/netinet/ip_divert.h log diff annotate
src/sys/netinet6/ip6_divert.c log diff annotate
src/sys/netinet6/ip6_divert.h log diff annotate
message Convert divert*_sysctl to sysctl_bounded_args

OK sashan

date 2020-08-24T16:40:07Z
author gnezdo
files src/sys/netinet6/in6.h log diff annotate
src/sys/netinet6/ip6_input.c log diff annotate
message Convert ip6_sysctl to sysctl_bounded_args

Tighter limits and OK by sashan