11541Srgrimes/*
21541Srgrimes * Copyright (c) 1997 Yen Yen Lim and North Dakota State University
31541Srgrimes * All rights reserved.
41541Srgrimes *
51541Srgrimes * Redistribution and use in source and binary forms, with or without
61541Srgrimes * modification, are permitted provided that the following conditions
71541Srgrimes * are met:
81541Srgrimes * 1. Redistributions of source code must retain the above copyright
91541Srgrimes *    notice, this list of conditions and the following disclaimer.
101541Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
111541Srgrimes *    notice, this list of conditions and the following disclaimer in the
121541Srgrimes *    documentation and/or other materials provided with the distribution.
131541Srgrimes * 3. All advertising materials mentioning features or use of this software
141541Srgrimes *    must display the following acknowledgement:
151541Srgrimes *      This product includes software developed by Yen Yen Lim and
161541Srgrimes        North Dakota State University
171541Srgrimes * 4. The name of the author may not be used to endorse or promote products
181541Srgrimes *    derived from this software without specific prior written permission.
191541Srgrimes *
201541Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
211541Srgrimes * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
221541Srgrimes * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
231541Srgrimes * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
241541Srgrimes * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
251541Srgrimes * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
261541Srgrimes * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
271541Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
281541Srgrimes * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
291541Srgrimes * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
301541Srgrimes * POSSIBILITY OF SUCH DAMAGE.
311541Srgrimes *
321541Srgrimes * @(#) $Header: /tcpdump/master/tcpdump/atmuni31.h,v 1.3 2007-10-22 19:37:51 guy Exp $ (LBL)
331541Srgrimes */
341541Srgrimes
351541Srgrimes/* Based on UNI3.1 standard by ATM Forum */
361541Srgrimes
371541Srgrimes/* ATM traffic types based on VPI=0 and (the following VCI */
381541Srgrimes#define VCI_PPC			0x05	/* Point-to-point signal msg */
3950477Speter#define VCI_BCC			0x02	/* Broadcast signal msg */
401541Srgrimes#define VCI_OAMF4SC		0x03	/* Segment OAM F4 flow cell */
411541Srgrimes#define VCI_OAMF4EC		0x04	/* End-to-end OAM F4 flow cell */
421541Srgrimes#define VCI_METAC		0x01	/* Meta signal msg */
431541Srgrimes#define VCI_ILMIC		0x10	/* ILMI msg */
441541Srgrimes
451541Srgrimes/* Q.2931 signalling messages */
4631778Seivind#define CALL_PROCEED		0x02	/* call proceeding */
4775426Srwatson#define CONNECT			0x07	/* connect */
4831778Seivind#define CONNECT_ACK		0x0f	/* connect_ack */
491541Srgrimes#define SETUP			0x05	/* setup */
501541Srgrimes#define RELEASE			0x4d	/* release */
511541Srgrimes#define RELEASE_DONE		0x5a	/* release_done */
5212221Sbde#define RESTART			0x46	/* restart */
5341059Speter#define RESTART_ACK		0x4e	/* restart ack */
5470317Sjake#define STATUS			0x7d	/* status */
551541Srgrimes#define STATUS_ENQ		0x75	/* status ack */
561541Srgrimes#define ADD_PARTY		0x80	/* add party */
5731891Ssef#define ADD_PARTY_ACK		0x81	/* add party ack */
5865495Struckman#define ADD_PARTY_REJ		0x82	/* add party rej */
5961287Srwatson#define DROP_PARTY		0x83	/* drop party */
6072786Srwatson#define DROP_PARTY_ACK		0x84	/* drop party ack */
611541Srgrimes
6230354Sphk/* Information Element Parameters in the signalling messages */
6330354Sphk#define CAUSE			0x08	/* cause */
6412221Sbde#define ENDPT_REF		0x54	/* endpoint reference */
6511332Sswallace#define AAL_PARA		0x58	/* ATM adaptation layer parameters */
661541Srgrimes#define TRAFF_DESCRIP		0x59	/* atm traffic descriptors */
671541Srgrimes#define CONNECT_ID		0x5a	/* connection identifier */
6812221Sbde#define QOS_PARA		0x5c	/* quality of service parameters */
691541Srgrimes#define B_HIGHER		0x5d	/* broadband higher layer information */
7058717Sdillon#define B_BEARER		0x5e	/* broadband bearer capability */
7170317Sjake#define B_LOWER			0x5f	/* broadband lower information */
7258717Sdillon#define CALLING_PARTY		0x6c	/* calling party number */
7370317Sjake#define CALLED_PARTY		0x70	/* called party nmber */
741541Srgrimes
751549Srgrimes#define Q2931			0x09
7630994Sphk
771541Srgrimes/* Q.2931 signalling general messages format */
7811332Sswallace#define PROTO_POS       0	/* offset of protocol discriminator */
791541Srgrimes#define CALL_REF_POS    2	/* offset of call reference value */
801541Srgrimes#define MSG_TYPE_POS    5	/* offset of message type */
8130994Sphk#define MSG_LEN_POS     7	/* offset of mesage length */
821541Srgrimes#define IE_BEGIN_POS    9	/* offset of first information element */
8374728Sjhb
8430994Sphk/* format of signalling messages */
8574728Sjhb#define TYPE_POS	0
861541Srgrimes#define LEN_POS		2
871541Srgrimes#define FIELD_BEGIN_POS 4
881541Srgrimes