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,8 +62,8 @@
|
||||
else \
|
||||
(m)->m_data = (m)->m_dat
|
||||
#define NFSMADV(m, s) (m)->m_data += (s)
|
||||
#define NFSMSIZ(m) ((M_HASCL(m))?MCLBYTES: \
|
||||
(((m)->m_flags & M_PKTHDR)?MHLEN:MLEN))
|
||||
#define NFSMSIZ(m) ((M_HASCL(m)) ? (m)->m_ext.ext_size : \
|
||||
(((m)->m_flags & M_PKTHDR) ? MHLEN : MLEN))
|
||||
|
||||
/*
|
||||
* Now for the macros that do the simple stuff and call the functions
|
||||
|
Loading…
Reference in New Issue
Block a user