Home | History | Annotate | Download | only in slirp-android

Lines Matching defs:mbuf

29  *	@(#)mbuf.h	8.3 (Berkeley) 1/21/94
30 * mbuf.h,v 1.9 1994/11/14 13:54:20 bde Exp
39 #define MINCSIZE 4096 /* Amount to increase mbuf if too small */
43 * mtod(m,t) - convert mbuf pointer to data pointer of correct type
44 * dtom(x) - convert data pointer within mbuf to mbuf pointer (XXX)
47 /* #define dtom(x) ((struct mbuf *)((int)(x) & ~(M_SIZE-1))) */
50 * Only one mbuf is ever used in a chain, for each "cell" of data.
58 /* header at beginning of each mbuf: */
60 struct mbuf *mh_next; /* Linked list of mbufs */
61 struct mbuf *mh_prev;
62 struct mbuf *mh_nextpkt; /* Next packet in queue/record */
63 struct mbuf *mh_prevpkt; /* Flags aren't used in the output queue */
70 int mh_len; /* Amount of data in this mbuf */
74 * How much room is in the mbuf, from m_data to the end of the mbuf
87 struct mbuf {
114 #define M_FREELIST 0x02 /* mbuf is on free list */
115 #define M_USEDLIST 0x04 /* XXX mbuf is on used list (for dtom()) */
116 #define M_DOFREE 0x08 /* when m_free is called on the mbuf, free()
120 * Mbuf statistics. XXX
130 extern struct mbuf m_freelist, m_usedlist;
134 struct mbuf * m_get _P((void));
135 void m_free _P((struct mbuf *));
136 void m_cat _P((register struct mbuf *, register struct mbuf *));
137 void m_inc _P((struct mbuf *, int));
138 void m_adj _P((struct mbuf *, int));
139 int m_copy _P((struct mbuf *, struct mbuf *, int, int));
140 struct mbuf * dtom _P((void *));