1*76404edcSAsim Jamshed /* 2*76404edcSAsim Jamshed * Copyright (c) 1997 Yen Yen Lim and North Dakota State University 3*76404edcSAsim Jamshed * All rights reserved. 4*76404edcSAsim Jamshed * 5*76404edcSAsim Jamshed * Redistribution and use in source and binary forms, with or without 6*76404edcSAsim Jamshed * modification, are permitted provided that the following conditions 7*76404edcSAsim Jamshed * are met: 8*76404edcSAsim Jamshed * 1. Redistributions of source code must retain the above copyright 9*76404edcSAsim Jamshed * notice, this list of conditions and the following disclaimer. 10*76404edcSAsim Jamshed * 2. Redistributions in binary form must reproduce the above copyright 11*76404edcSAsim Jamshed * notice, this list of conditions and the following disclaimer in the 12*76404edcSAsim Jamshed * documentation and/or other materials provided with the distribution. 13*76404edcSAsim Jamshed * 3. All advertising materials mentioning features or use of this software 14*76404edcSAsim Jamshed * must display the following acknowledgement: 15*76404edcSAsim Jamshed * This product includes software developed by Yen Yen Lim and 16*76404edcSAsim Jamshed North Dakota State University 17*76404edcSAsim Jamshed * 4. The name of the author may not be used to endorse or promote products 18*76404edcSAsim Jamshed * derived from this software without specific prior written permission. 19*76404edcSAsim Jamshed * 20*76404edcSAsim Jamshed * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21*76404edcSAsim Jamshed * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 22*76404edcSAsim Jamshed * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 23*76404edcSAsim Jamshed * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 24*76404edcSAsim Jamshed * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 25*76404edcSAsim Jamshed * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 26*76404edcSAsim Jamshed * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27*76404edcSAsim Jamshed * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 28*76404edcSAsim Jamshed * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 29*76404edcSAsim Jamshed * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30*76404edcSAsim Jamshed * POSSIBILITY OF SUCH DAMAGE. 31*76404edcSAsim Jamshed * 32*76404edcSAsim Jamshed * @(#) $Header: /usr/cvsroot/sfeng/ims/src/libraries/daq/daq/sfbpf/atmuni31.h,v 1.1 2010/04/15 19:18:35 maltizer Exp $ (LBL) 33*76404edcSAsim Jamshed */ 34*76404edcSAsim Jamshed 35*76404edcSAsim Jamshed /* Based on UNI3.1 standard by ATM Forum */ 36*76404edcSAsim Jamshed 37*76404edcSAsim Jamshed /* ATM traffic types based on VPI=0 and (the following VCI */ 38*76404edcSAsim Jamshed #define VCI_PPC 0x05 /* Point-to-point signal msg */ 39*76404edcSAsim Jamshed #define VCI_BCC 0x02 /* Broadcast signal msg */ 40*76404edcSAsim Jamshed #define VCI_OAMF4SC 0x03 /* Segment OAM F4 flow cell */ 41*76404edcSAsim Jamshed #define VCI_OAMF4EC 0x04 /* End-to-end OAM F4 flow cell */ 42*76404edcSAsim Jamshed #define VCI_METAC 0x01 /* Meta signal msg */ 43*76404edcSAsim Jamshed #define VCI_ILMIC 0x10 /* ILMI msg */ 44*76404edcSAsim Jamshed 45*76404edcSAsim Jamshed /* Q.2931 signalling messages */ 46*76404edcSAsim Jamshed #define CALL_PROCEED 0x02 /* call proceeding */ 47*76404edcSAsim Jamshed #define CONNECT 0x07 /* connect */ 48*76404edcSAsim Jamshed #define CONNECT_ACK 0x0f /* connect_ack */ 49*76404edcSAsim Jamshed #define SETUP 0x05 /* setup */ 50*76404edcSAsim Jamshed #define RELEASE 0x4d /* release */ 51*76404edcSAsim Jamshed #define RELEASE_DONE 0x5a /* release_done */ 52*76404edcSAsim Jamshed #define RESTART 0x46 /* restart */ 53*76404edcSAsim Jamshed #define RESTART_ACK 0x4e /* restart ack */ 54*76404edcSAsim Jamshed #define STATUS 0x7d /* status */ 55*76404edcSAsim Jamshed #define STATUS_ENQ 0x75 /* status ack */ 56*76404edcSAsim Jamshed #define ADD_PARTY 0x80 /* add party */ 57*76404edcSAsim Jamshed #define ADD_PARTY_ACK 0x81 /* add party ack */ 58*76404edcSAsim Jamshed #define ADD_PARTY_REJ 0x82 /* add party rej */ 59*76404edcSAsim Jamshed #define DROP_PARTY 0x83 /* drop party */ 60*76404edcSAsim Jamshed #define DROP_PARTY_ACK 0x84 /* drop party ack */ 61*76404edcSAsim Jamshed 62*76404edcSAsim Jamshed /* Information Element Parameters in the signalling messages */ 63*76404edcSAsim Jamshed #define CAUSE 0x08 /* cause */ 64*76404edcSAsim Jamshed #define ENDPT_REF 0x54 /* endpoint reference */ 65*76404edcSAsim Jamshed #define AAL_PARA 0x58 /* ATM adaptation layer parameters */ 66*76404edcSAsim Jamshed #define TRAFF_DESCRIP 0x59 /* atm traffic descriptors */ 67*76404edcSAsim Jamshed #define CONNECT_ID 0x5a /* connection identifier */ 68*76404edcSAsim Jamshed #define QOS_PARA 0x5c /* quality of service parameters */ 69*76404edcSAsim Jamshed #define B_HIGHER 0x5d /* broadband higher layer information */ 70*76404edcSAsim Jamshed #define B_BEARER 0x5e /* broadband bearer capability */ 71*76404edcSAsim Jamshed #define B_LOWER 0x5f /* broadband lower information */ 72*76404edcSAsim Jamshed #define CALLING_PARTY 0x6c /* calling party number */ 73*76404edcSAsim Jamshed #define CALLED_PARTY 0x70 /* called party nmber */ 74*76404edcSAsim Jamshed 75*76404edcSAsim Jamshed #define Q2931 0x09 76*76404edcSAsim Jamshed 77*76404edcSAsim Jamshed /* Q.2931 signalling general messages format */ 78*76404edcSAsim Jamshed #define PROTO_POS 0 /* offset of protocol discriminator */ 79*76404edcSAsim Jamshed #define CALL_REF_POS 2 /* offset of call reference value */ 80*76404edcSAsim Jamshed #define MSG_TYPE_POS 5 /* offset of message type */ 81*76404edcSAsim Jamshed #define MSG_LEN_POS 7 /* offset of mesage length */ 82*76404edcSAsim Jamshed #define IE_BEGIN_POS 9 /* offset of first information element */ 83*76404edcSAsim Jamshed 84*76404edcSAsim Jamshed /* format of signalling messages */ 85*76404edcSAsim Jamshed #define TYPE_POS 0 86*76404edcSAsim Jamshed #define LEN_POS 2 87*76404edcSAsim Jamshed #define FIELD_BEGIN_POS 4 88