brintos

brintos / linux-shallow public Read only

0
0
Text · 1.1 KiB · e456dcc Raw
47 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/******************************************************************************3 *4 *	(C)Copyright 1998,1999 SysKonnect,5 *	a business unit of Schneider & Koch & Co. Datensysteme GmbH.6 *7 *	The information in this file is provided "AS IS" without warranty.8 *9 ******************************************************************************/10 11#ifndef	_MBUF_12#define _MBUF_13 14#define M_SIZE	450415 16#ifndef MAX_MBUF17#define MAX_MBUF	418#endif19 20#ifndef NO_STD_MBUF21#define sm_next         m_next22#define sm_off          m_off23#define sm_len          m_len24#define sm_data         m_data25#define SMbuf           Mbuf26#define mtod		smtod27#define mtodoff		smtodoff28#endif29 30struct s_mbuf {31	struct s_mbuf	*sm_next ;		/* low level linked list */32	short		sm_off ;			/* offset in m_data */33	u_int		sm_len ;			/* len of data */34#ifdef	PCI35	int		sm_use_count ;36#endif37	char		sm_data[M_SIZE] ;38} ;39 40typedef struct s_mbuf SMbuf ;41 42/* mbuf head, to typed data */43#define	smtod(x,t)	((t)((x)->sm_data + (x)->sm_off))44#define	smtodoff(x,t,o)	((t)((x)->sm_data + (o)))45 46#endif	/* _MBUF_ */47