Don't assume mbuf external storage is MCLBYTES.
This commit is contained in:
parent
22ea1671cf
commit
76d601d33e
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: nfsm_subs.h,v 1.14 1997/02/24 23:26:20 fvdl Exp $ */
|
||||
/* $NetBSD: nfsm_subs.h,v 1.15 1997/03/27 20:45:27 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -62,7 +62,7 @@
|
||||
else \
|
||||
(m)->m_data = (m)->m_dat
|
||||
#define NFSMADV(m, s) (m)->m_data += (s)
|
||||
#define NFSMSIZ(m) ((M_HASCL(m))?MCLBYTES: \
|
||||
#define NFSMSIZ(m) ((M_HASCL(m)) ? (m)->m_ext.ext_size : \
|
||||
(((m)->m_flags & M_PKTHDR) ? MHLEN : MLEN))
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user