1127668Sbms/* 2127668Sbms * Copyright (c) 1997 Yen Yen Lim and North Dakota State University 3127668Sbms * All rights reserved. 4127668Sbms * 5127668Sbms * Redistribution and use in source and binary forms, with or without 6127668Sbms * modification, are permitted provided that the following conditions 7127668Sbms * are met: 8127668Sbms * 1. Redistributions of source code must retain the above copyright 9127668Sbms * notice, this list of conditions and the following disclaimer. 10127668Sbms * 2. Redistributions in binary form must reproduce the above copyright 11127668Sbms * notice, this list of conditions and the following disclaimer in the 12127668Sbms * documentation and/or other materials provided with the distribution. 13127668Sbms * 3. All advertising materials mentioning features or use of this software 14127668Sbms * must display the following acknowledgement: 15127668Sbms * This product includes software developed by Yen Yen Lim and 16127668Sbms North Dakota State University 17127668Sbms * 4. The name of the author may not be used to endorse or promote products 18127668Sbms * derived from this software without specific prior written permission. 19127668Sbms * 20127668Sbms * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21127668Sbms * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 22127668Sbms * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 23127668Sbms * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 24127668Sbms * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 25127668Sbms * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 26127668Sbms * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27127668Sbms * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 28127668Sbms * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 29127668Sbms * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30127668Sbms * POSSIBILITY OF SUCH DAMAGE. 31127668Sbms * 32214478Srpaulo * @(#) $Header: /tcpdump/master/tcpdump/atmuni31.h,v 1.3 2007-10-22 19:37:51 guy Exp $ (LBL) 33127668Sbms */ 34127668Sbms 35127668Sbms/* Based on UNI3.1 standard by ATM Forum */ 36127668Sbms 37127668Sbms/* ATM traffic types based on VPI=0 and (the following VCI */ 38190207Srpaulo#define VCI_PPC 0x05 /* Point-to-point signal msg */ 39190207Srpaulo#define VCI_BCC 0x02 /* Broadcast signal msg */ 40190207Srpaulo#define VCI_OAMF4SC 0x03 /* Segment OAM F4 flow cell */ 41190207Srpaulo#define VCI_OAMF4EC 0x04 /* End-to-end OAM F4 flow cell */ 42190207Srpaulo#define VCI_METAC 0x01 /* Meta signal msg */ 43190207Srpaulo#define VCI_ILMIC 0x10 /* ILMI msg */ 44127668Sbms 45127668Sbms/* Q.2931 signalling messages */ 46127668Sbms#define CALL_PROCEED 0x02 /* call proceeding */ 47127668Sbms#define CONNECT 0x07 /* connect */ 48127668Sbms#define CONNECT_ACK 0x0f /* connect_ack */ 49127668Sbms#define SETUP 0x05 /* setup */ 50127668Sbms#define RELEASE 0x4d /* release */ 51127668Sbms#define RELEASE_DONE 0x5a /* release_done */ 52127668Sbms#define RESTART 0x46 /* restart */ 53127668Sbms#define RESTART_ACK 0x4e /* restart ack */ 54127668Sbms#define STATUS 0x7d /* status */ 55127668Sbms#define STATUS_ENQ 0x75 /* status ack */ 56127668Sbms#define ADD_PARTY 0x80 /* add party */ 57127668Sbms#define ADD_PARTY_ACK 0x81 /* add party ack */ 58127668Sbms#define ADD_PARTY_REJ 0x82 /* add party rej */ 59127668Sbms#define DROP_PARTY 0x83 /* drop party */ 60127668Sbms#define DROP_PARTY_ACK 0x84 /* drop party ack */ 61127668Sbms 62127668Sbms/* Information Element Parameters in the signalling messages */ 63127668Sbms#define CAUSE 0x08 /* cause */ 64127668Sbms#define ENDPT_REF 0x54 /* endpoint reference */ 65127668Sbms#define AAL_PARA 0x58 /* ATM adaptation layer parameters */ 66127668Sbms#define TRAFF_DESCRIP 0x59 /* atm traffic descriptors */ 67127668Sbms#define CONNECT_ID 0x5a /* connection identifier */ 68127668Sbms#define QOS_PARA 0x5c /* quality of service parameters */ 69127668Sbms#define B_HIGHER 0x5d /* broadband higher layer information */ 70127668Sbms#define B_BEARER 0x5e /* broadband bearer capability */ 71127668Sbms#define B_LOWER 0x5f /* broadband lower information */ 72127668Sbms#define CALLING_PARTY 0x6c /* calling party number */ 73127668Sbms#define CALLED_PARTY 0x70 /* called party nmber */ 74127668Sbms 75127668Sbms#define Q2931 0x09 76127668Sbms 77127668Sbms/* Q.2931 signalling general messages format */ 78127668Sbms#define PROTO_POS 0 /* offset of protocol discriminator */ 79127668Sbms#define CALL_REF_POS 2 /* offset of call reference value */ 80127668Sbms#define MSG_TYPE_POS 5 /* offset of message type */ 81127668Sbms#define MSG_LEN_POS 7 /* offset of mesage length */ 82127668Sbms#define IE_BEGIN_POS 9 /* offset of first information element */ 83127668Sbms 84127668Sbms/* format of signalling messages */ 85127668Sbms#define TYPE_POS 0 86127668Sbms#define LEN_POS 2 87127668Sbms#define FIELD_BEGIN_POS 4 88