1 /******************************************************************************
 
   3  *      (C)Copyright 1998,1999 SysKonnect,
 
   4  *      a business unit of Schneider & Koch & Co. Datensysteme GmbH.
 
   6  *      This program is free software; you can redistribute it and/or modify
 
   7  *      it under the terms of the GNU General Public License as published by
 
   8  *      the Free Software Foundation; either version 2 of the License, or
 
   9  *      (at your option) any later version.
 
  11  *      The information in this file is provided "AS IS" without warranty.
 
  13  ******************************************************************************/
 
  29 #define sm_next         m_next
 
  32 #define sm_data         m_data
 
  35 #define mtodoff         smtodoff
 
  39         struct s_mbuf   *sm_next ;              /* low level linked list */
 
  40         short           sm_off ;                        /* offset in m_data */
 
  41         u_int           sm_len ;                        /* len of data */
 
  45         char            sm_data[M_SIZE] ;
 
  48 typedef struct s_mbuf SMbuf ;
 
  50 /* mbuf head, to typed data */
 
  51 #define smtod(x,t)      ((t)((x)->sm_data + (x)->sm_off))
 
  52 #define smtodoff(x,t,o) ((t)((x)->sm_data + (o)))