|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Angelos D. Keromytis (angelos
cvs.openbsd.org)Date: Fri Aug 24 2001 - 09:31:58 CDT
CVSROOT: /cvs
Module name: src
Changes by: angelos
cvs.openbsd.org 2001/08/24 08:31:58
Modified files:
sys/sys : mbuf.h
Log message:
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!).
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]