root/src/m3ua/mstm3ua.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  *  mstm3ua.h
   3  *  mstss7d
   4  *
   5  *  Created by Shane Burrell on 3/2/08.
   6  *  Copyright 2008 Shane Burrell. All rights reserved.
   7  *
   8  *
   9  * Redistribution and use in source and binary forms, with or without
  10  * modification, are permitted provided that the following conditions
  11  * are met:
  12  * 
  13  * * Redistributions of source code must retain the above copyright
  14  * notice, this list of conditions and the following disclaimer.
  15  * 
  16  * * Redistributions in binary form must reproduce the above copyright
  17  * notice, this list of conditions and the following disclaimer in the
  18  * documentation and/or other materials provided with the distribution.
  19  * 
  20  * * Neither the name of the original author; nor the names of any contributors
  21  * may be used to endorse or promote products derived from this software
  22  * without specific prior written permission.
  23  * 
  24  * 
  25  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  26  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  27  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  28  * A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER
  29  * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  30  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  31  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  32  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  33  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  34  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  35  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  36  */
  37 typedef unsigned long m3ua_ulong;
  38 typedef unsigned short m3ua_ushort;
  39 typedef unsigned char m3ua_uchar;
  40 
  41 typedef unsigned char u8;
  42 typedef unsigned short u16;     /* Note: multi-byte values are little-endian */
  43 typedef unsigned long u32;
  44 
  45 
  46 
  47 
  48 #define M_TAG_NETWORK_APPEARANCE        1
  49 #define M_TAG_PROTOCOL_DATA             3
  50 #define M_TAG_INFO_STRING               4
  51 #define M_TAG_AFFECTED_DPC              5
  52 #define M_TAG_ROUTING_CONTEXT           6
  53 #define M_TAG_DIAGNOSTIC_INFORMATION    7
  54 #define M_TAG_HEARTBEAT_DATA            8
  55 #define M_TAG_UNAVAILABILITY_CAUSE      9
  56 #define M_TAG_REASON                    10
  57 #define M_TAG_TRAFFIC_MODE_TYPE         11
  58 #define M_TAG_ERROR_CODE                12
  59 #define M_TAG_STATUS_TYPE               13
  60 #define M_TAG_CONGESTED_INDICATIONS     14
  61 
  62 #define M_VERSION_REL1   1
  63 
  64 #define M_CLASS_MGMT    0x00
  65 #define M_CLASS_XFER    0x01
  66 #define M_CLASS_SSNM    0x02
  67 #define M_CLASS_ASPSM   0x03
  68 #define M_CLASS_ASPTM   0x04
  69 #define M_CLASS_RKM             0x09
  70 
  71 #define M_TYPE_ERR              (0|M_CLASS_MGMT
  72 
  73 #define M_TYPE_NTFY             (1|M_CLASS_XFER)
  74 #define M_TYPE_DATA             (1|M_CLASS_XFER)
  75 
  76 #define M_TYPE_DUNA             (1|M_CLASS_SSNM)
  77 #define M_TYPE_DAVA             (2|M_CLASS_SSNM)
  78 #define M_TYPE_DUAD             (3|M_CLASS_SSNM)
  79 #define M_TYPE_SCON             (4|M_CLASS_SSNM)
  80 #define M_TYPE_DUPU             (5|M_CLASS_SSNM)
  81 
  82 #define M_TYPE_UP               (1|M_CLASS_ASPSM)
  83 #define M_TYPE_DOWN             (2|M_CLASS_ASPSM)
  84 #define M_TYPE_BEAT             (3|M_CLASS_ASPSM)
  85 #define M_TYPE_UP_ACK           (4|M_CLASS_ASPSM)
  86 #define M_TYPE_DOWN_ACK         (5|M_CLASS_ASPSM)
  87 #define M_TYPE_BEAT_ACK         (6|M_CLASS_ASPSM)
  88 
  89 #define M_TYPE_ACTIVE           (1|M_CLASS_ASPTM)
  90 #define M_TYPE_INACTIVE         (2|M_CLASS_ASPTM)
  91 #define M_TYPE_ACTIVE_ACK       (3|M_CLASS_ASPTM)
  92 #define M_TYPE_INACTIVE_ACK     (4|M_CLASS_ASPTM)
  93 
  94 #define M_CLASS_MASK    0xff00
  95 #define M_TYPE_MASK     0x00ff
  96 

/* [<][>][^][v][top][bottom][index][help] */