OpenBSD/src zNa7jFs — sbin/pfctl pfctl.c, share/man/man4 pf.4
Change ps_len of struct pfioc_states and psn_len of struct pfioc_src_nodes to size_t. This avoids integer truncation by casts to unsigned. As the types of DIOCGETSTATES and DIOCGETSRCNODES ioctl(2) arguments change, pfctl(8) and systat(1) should be updated together with the kernel. Calculate number of pf(4) states as size_t in userland. OK sashan@ deraadt@
Version | Delta | File | |
---|---|---|---|
1.43 | +38 | -38 | usr.bin/systat/pftop.c |
1.371 | +5 | -7 | sbin/pfctl/pfctl.c |
1.343 | +4 | -4 | sys/net/pf_ioctl.c |
1.91 | +4 | -4 | share/man/man4/pf.4 |
1.490 | +3 | -3 | sys/net/pfvar.h |
+54 | -56 | 5 files |