minor clean, and kill some unnecessary paranoia

This commit is contained in:
cgd 1994-10-30 19:08:35 +00:00
parent 1e951824c4
commit 514f89832e
1 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mbuf.h,v 1.12 1994/10/29 08:20:16 cgd Exp $ */
/* $NetBSD: mbuf.h,v 1.13 1994/10/30 19:08:35 cgd Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1993
@ -60,7 +60,7 @@
* mtocl(x) - convert pointer within cluster to cluster index #
* cltom(x) - convert cluster # to ptr to beginning of cluster
*/
#define mtod(m,t) ((t)((m)->m_data))
#define mtod(m,t) ((t)((m)->m_data))
#define dtom(x) ((struct mbuf *)((long)(x) & ~(MSIZE-1)))
#define mtocl(x) (((u_long)(x) - (u_long)mbutl) >> MCLSHIFT)
#define cltom(x) ((caddr_t)((u_long)mbutl + ((u_long)(x) << MCLSHIFT)))
@ -70,22 +70,22 @@ struct m_hdr {
struct mbuf *mh_next; /* next buffer in chain */
struct mbuf *mh_nextpkt; /* next chain in queue/record */
caddr_t mh_data; /* location of data */
int32_t mh_len; /* amount of data in this mbuf */
int16_t mh_type; /* type of data in this mbuf */
int16_t mh_flags; /* flags; see below */
int mh_len; /* amount of data in this mbuf */
short mh_type; /* type of data in this mbuf */
short mh_flags; /* flags; see below */
};
/* record/packet header in first mbuf of chain; valid if M_PKTHDR set */
struct pkthdr {
int32_t len; /* total packet length */
struct ifnet *rcvif; /* rcv interface */
struct ifnet *rcvif; /* rcv interface */
int len; /* total packet length */
};
/* description of external storage mapped into mbuf, valid if M_EXT set */
struct m_ext {
caddr_t ext_buf; /* start of buffer */
u_int ext_size; /* size of buffer, for ext_free */
void (*ext_free)(); /* free routine if not the usual */
u_int ext_size; /* size of buffer, for ext_free */
};
struct mbuf {