1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /******************************************************************************
4 * (C)Copyright 1998,1999 SysKonnect,
5 * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
7 * The information in this file is provided "AS IS" without warranty.
9 ******************************************************************************/
21 #define sm_next m_next
24 #define sm_data m_data
27 #define mtodoff smtodoff
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 */
37 char sm_data
[M_SIZE
] ;
40 typedef struct s_mbuf SMbuf
;
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)))