summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1997-08-09 12:59:14 +0000
committerniklas <niklas@openbsd.org>1997-08-09 12:59:14 +0000
commit727dee7f77b47b988c3f95c88f39865cd672b53f (patch)
tree1afbca9618f0d77c101de007ebcd7990f390426f /sys/netinet/udp_usrreq.c
parentSYN flood protection, by specifying (diff)
downloadwireguard-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