diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-03-10 02:48:50 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-03-10 02:48:50 +0000 |
commit | fea945fb73bcbd8e5124d42bf3f62632c38aa171 (patch) | |
tree | c7845f33a0decd79d0e68573a8de3342d40b6631 /lib/libc/string/strmode.c | |
parent | 7866f6e355d1bfbca14c6149fe2561d75e9b0f99 (diff) | |
download | FreeBSD-src-fea945fb73bcbd8e5124d42bf3f62632c38aa171.zip FreeBSD-src-fea945fb73bcbd8e5124d42bf3f62632c38aa171.tar.gz |
Lock down IP-layer encapsulation library:
- Add encapmtx to protect ip_encap.c global variables (encapsulation
list).
- Unifdef #ifdef 0 pieces of encap_init() which was (and now really
is) basically a no-op.
- Lock encapmtx when walking encaptab, modifying it, comparing
entries, etc.
- Remove spl's.
Note that currently there's no facilite to make sure outstanding
use of encapsulation methods on a table entry have drained bfore
we allow a table entry to be removed. As such, it's currently the
caller's responsibility to make sure that draining takes place.
Reviewed by: mlaier
Diffstat (limited to 'lib/libc/string/strmode.c')
0 files changed, 0 insertions, 0 deletions