diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-08-24 14:31:59 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-08-24 14:31:59 +0000 |
commit | eeee443828b528e58012aae41a23bcaae07e6efc (patch) | |
tree | 52130e4c45afbfe84f04f8e6e76ce9a9352a3a07 /usr.bin/ar/ar.5 | |
parent | 23455c538740a36be779f04926dd6e046f6acb76 (diff) |
From NetBSD:
Add an M_READONLY() macro, which evaluates to true if the mbuf's
data area is not to be written to. This is the case for mbufs with
external storage which is either a non-cluster or a cluster referenced
by multiple mbufs.
Change M_LEADINGSPACE() and M_TRAILINGSPACE() to use M_READONLY(),
rather than their own testing for M_EXT. Previously, M_LEADINGSPACE()
treated all M_EXT mbufs as read-only (which causes an extra mbuf to
be needlessly allocated when sending large TCP packets), and
M_TRAILINGSPACE() previously did not treat any external storage as
read-only (could lead to data corruption of external storage buffers!).
Diffstat (limited to 'usr.bin/ar/ar.5')
0 files changed, 0 insertions, 0 deletions