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