CVSROOT: /cvs Module name: src Changes by: [email protected] 2020/12/10 22:00:21
Modified files:
sys/net : bpf.c bpfdesc.h
Log message:
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@
