diff options
author | 2020-12-11 05:00:21 +0000 | |
---|---|---|
committer | 2020-12-11 05:00:21 +0000 | |
commit | 54b3831179727349c9c86519a934aad56a12cb3d (patch) | |
tree | cf88686f1e5edaf89908f6140d8654089dc4e85b /usr.sbin/bgpd/timer.c | |
parent | ipmi(4): tsleep(9) -> tsleep_nsec(9) (diff) | |
download | wireguard-openbsd-54b3831179727349c9c86519a934aad56a12cb3d.tar.xz wireguard-openbsd-54b3831179727349c9c86519a934aad56a12cb3d.zip |
bpf(4): BIOCGRTIMEOUT, BIOCSRTIMEOUT: protect bd_rtout with bd_mtx
Reading and writing bd_rtout is not an atomic operation, so it needs
to be done under the per-descriptor mutex.
While here, start annotating locking in bpfdesc.h. There's lots more
to do on this front, but you have to start somewhere.
Tweaked by mpi@.
ok mpi@
Diffstat (limited to 'usr.sbin/bgpd/timer.c')
0 files changed, 0 insertions, 0 deletions