atmuni31.h revision 127664
11573Srgrimes/* 21573Srgrimes * Copyright (c) 1997 Yen Yen Lim and North Dakota State University 31573Srgrimes * All rights reserved. 41573Srgrimes * 51573Srgrimes * Redistribution and use in source and binary forms, with or without 61573Srgrimes * modification, are permitted provided that the following conditions 71573Srgrimes * are met: 81573Srgrimes * 1. Redistributions of source code must retain the above copyright 91573Srgrimes * notice, this list of conditions and the following disclaimer. 101573Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111573Srgrimes * notice, this list of conditions and the following disclaimer in the 121573Srgrimes * documentation and/or other materials provided with the distribution. 131573Srgrimes * 3. All advertising materials mentioning features or use of this software 141573Srgrimes * must display the following acknowledgement: 151573Srgrimes * This product includes software developed by Yen Yen Lim and 161573Srgrimes North Dakota State University 171573Srgrimes * 4. The name of the author may not be used to endorse or promote products 181573Srgrimes * derived from this software without specific prior written permission. 191573Srgrimes * 201573Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 211573Srgrimes * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 221573Srgrimes * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 231573Srgrimes * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 241573Srgrimes * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 251573Srgrimes * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 261573Srgrimes * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 271573Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 281573Srgrimes * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 291573Srgrimes * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 301573Srgrimes * POSSIBILITY OF SUCH DAMAGE. 311573Srgrimes * 321573Srgrimes * @(#) $Header: /tcpdump/master/libpcap/atmuni31.h,v 1.1 2002/07/11 09:06:32 guy Exp $ (LBL) 331573Srgrimes */ 341573Srgrimes 351573Srgrimes/* Based on UNI3.1 standard by ATM Forum */ 361573Srgrimes 371573Srgrimes/* ATM traffic types based on VPI=0 and (the following VCI */ 381573Srgrimes#define PPC 0x05 /* Point-to-point signal msg */ 391573Srgrimes#define BCC 0x02 /* Broadcast signal msg */ 4090045Sobrien#define OAMF4SC 0x03 /* Segment OAM F4 flow cell */ 4190045Sobrien#define OAMF4EC 0x04 /* End-to-end OAM F4 flow cell */ 421573Srgrimes#define METAC 0x01 /* Meta signal msg */ 431573Srgrimes#define ILMIC 0x10 /* ILMI msg */ 441573Srgrimes 451573Srgrimes/* Q.2931 signalling messages */ 461573Srgrimes#define CALL_PROCEED 0x02 /* call proceeding */ 471573Srgrimes#define CONNECT 0x07 /* connect */ 481573Srgrimes#define CONNECT_ACK 0x0f /* connect_ack */ 491573Srgrimes#define SETUP 0x05 /* setup */ 501573Srgrimes#define RELEASE 0x4d /* release */ 511573Srgrimes#define RELEASE_DONE 0x5a /* release_done */ 521573Srgrimes#define RESTART 0x46 /* restart */ 531573Srgrimes#define RESTART_ACK 0x4e /* restart ack */ 541573Srgrimes#define STATUS 0x7d /* status */ 551573Srgrimes#define STATUS_ENQ 0x75 /* status ack */ 561573Srgrimes#define ADD_PARTY 0x80 /* add party */ 571573Srgrimes#define ADD_PARTY_ACK 0x81 /* add party ack */ 581573Srgrimes#define ADD_PARTY_REJ 0x82 /* add party rej */ 591573Srgrimes#define DROP_PARTY 0x83 /* drop party */ 601573Srgrimes#define DROP_PARTY_ACK 0x84 /* drop party ack */ 611573Srgrimes 621573Srgrimes/* Information Element Parameters in the signalling messages */ 638870Srgrimes#define CAUSE 0x08 /* cause */ 641573Srgrimes#define ENDPT_REF 0x54 /* endpoint reference */ 651573Srgrimes#define AAL_PARA 0x58 /* ATM adaptation layer parameters */ 661573Srgrimes#define TRAFF_DESCRIP 0x59 /* atm traffic descriptors */ 671573Srgrimes#define CONNECT_ID 0x5a /* connection identifier */ 68132817Stjr#define QOS_PARA 0x5c /* quality of service parameters */ 69132817Stjr#define B_HIGHER 0x5d /* broadband higher layer information */ 70132817Stjr#define B_BEARER 0x5e /* broadband bearer capability */ 71132817Stjr#define B_LOWER 0x5f /* broadband lower information */ 72132817Stjr#define CALLING_PARTY 0x6c /* calling party number */ 73132817Stjr#define CALLED_PARTY 0x70 /* called party nmber */ 74132817Stjr 75132817Stjr#define Q2931 0x09 76132817Stjr 77132817Stjr/* Q.2931 signalling general messages format */ 781573Srgrimes#define PROTO_POS 0 /* offset of protocol discriminator */ 791573Srgrimes#define CALL_REF_POS 2 /* offset of call reference value */ 801573Srgrimes#define MSG_TYPE_POS 5 /* offset of message type */ 811573Srgrimes#define MSG_LEN_POS 7 /* offset of mesage length */ 821573Srgrimes#define IE_BEGIN_POS 9 /* offset of first information element */ 831573Srgrimes 841573Srgrimes/* format of signalling messages */ 85132817Stjr#define TYPE_POS 0 861573Srgrimes#define LEN_POS 2 87132817Stjr#define FIELD_BEGIN_POS 4 881573Srgrimes