diff options
author | 1997-08-09 12:59:14 +0000 | |
---|---|---|
committer | 1997-08-09 12:59:14 +0000 | |
commit | 727dee7f77b47b988c3f95c88f39865cd672b53f (patch) | |
tree | 1afbca9618f0d77c101de007ebcd7990f390426f /sys/netinet/udp_usrreq.c | |
parent | SYN flood protection, by specifying (diff) | |
download | wireguard-openbsd-727dee7f77b47b988c3f95c88f39865cd672b53f.tar.xz wireguard-openbsd-727dee7f77b47b988c3f95c88f39865cd672b53f.zip |
struct statfs uses a signed short f_flags field. This field is used in
the long (the type) expression that makes up the mount flags field passed
to mount(2). If we are dealing with a noatime mount this means sign
extension will occur and the flag field will get messed up. I.e. noatime
mounts (at least rw ones) ended up not exportable. I fixed this by casting
to u_short in the expressions, but I would like to change struct statfs
instead, but that is an API issue it is not for me to decide on.
I also added error decoding in two syslog calls.
This was made possible by the arglist heuristics printout of OpenBSD/alpha
DDB :-)
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
0 files changed, 0 insertions, 0 deletions