[BACK]Return to i4b_isdnq931.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / netisdn

File: [cvs.NetBSD.org] / src / sys / netisdn / Attic / i4b_isdnq931.h (download)

Revision 1.2, Sat Dec 10 23:51:50 2005 UTC (18 years, 4 months ago) by elad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, yamt-nfs-mp-base11, yamt-nfs-mp-base10, yamt-nfs-mp-base, yamt-nfs-mp, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, tls-maxphys-base-20171202, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, thorpej-atomic-base, thorpej-atomic, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, post-newlock2-merge, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, peter-altq-base, peter-altq, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, newlock2, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-ufs-trans-base, mjf-ufs-trans, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, mjf-devfs, matt-premerge-20091211, matt-nb8-mediatek-base, matt-nb8-mediatek, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-premerge-20101231, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, localcount-20160914, ktrace-lwp-base, khorben-n900, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-pm-base, jmcneill-pm, jmcneill-base, jmcneill-audiomp3-base, jmcneill-audiomp3, jdolecek-ncq-base, jdolecek-ncq, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, cube-autoconf-base, cube-autoconf, cherry-xenmp-base, cherry-xenmp, chap-midi-nbase, chap-midi-base, chap-midi, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.1: +6 -1 lines

Multiple inclusion protection, as suggested by christos@ on tech-kern@
few days ago.

/*
 * Copyright (c) 1997, 1999 Hellmuth Michaelis. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 *---------------------------------------------------------------------------
 *
 *	i4b_isdnq931.h - DSS1 layer 3 message types
 *	-------------------------------------------
 *
 *	$Id: i4b_isdnq931.h,v 1.2 2005/12/10 23:51:50 elad Exp $
 *
 * $FreeBSD$
 *
 *	last edit-date: [Thu Apr 27 09:46:13 2000]
 *
 *---------------------------------------------------------------------------*/

#ifndef _NETISDN_I4B_ISDBQ931_H_
#define _NETISDN_I4B_ISDBQ931_H_

/* protocol discriminators */

#define PD_Q931		0x08	/* Q.931/I.451				*/

/* Q.931 single octett information element identifiers */

#define IEI_SENDCOMPL	0xa1	/* sending complete			*/

/* Q.931 variable length information element identifiers */

#define IEI_SEGMMSG	0x00	/* segmented message			*/
#define	IEI_BEARERCAP	0x04	/* bearer capabilities			*/
#define	IEI_CAUSE	0x08	/* cause 				*/
#define IEI_CALLID	0x10	/* call identity			*/
#define IEI_CALLSTATE	0x14	/* call state				*/
#define IEI_CHANNELID	0x18	/* channel identification 		*/
#define IEI_PROGRESSI	0x1e	/* progress indicator			*/
#define IEI_NETSPCFAC	0x20	/* network specific facilities		*/
#define IEI_NOTIFIND	0x27	/* notification indicator		*/
#define IEI_DISPLAY	0x28	/* display				*/
#define IEI_DATETIME	0x29	/* date/time				*/
#define IEI_KEYPAD	0x2c	/* keypad facility			*/
#define IEI_SIGNAL	0x34	/* signal				*/
#define IEI_INFRATE	0x40	/* information rate			*/
#define IEI_ETETDEL	0x42	/* end to end transit delay		*/
#define IEI_TDELSELIND	0x43	/* transit delay selection and indication */
#define IEI_PLBPARMS	0x44	/* packet layer binary parameters	*/
#define IEI_PLWSIZE	0x45	/* packet layer window size		*/
#define IEI_PSIZE	0x46	/* packet size				*/
#define IEI_CUG		0x47	/* closed user group			*/
#define IEI_REVCHRGI	0x4a	/* reverse charge indication		*/
#define IEI_CALLINGPN	0x6c	/* calling party number			*/
#define IEI_CALLINGPS	0x6d	/* calling party subaddress		*/
#define IEI_CALLEDPN	0x70	/* called party number			*/
#define IEI_CALLEDPS	0x71	/* called party subaddress		*/
#define IEI_REDIRNO	0x74	/* redirecting number			*/
#define IEI_TRNSEL	0x78	/* transit network selection		*/
#define IEI_RESTARTI	0x79	/* restart indicator			*/
#define IEI_LLCOMPAT	0x7c	/* low layer compatibility		*/
#define IEI_HLCOMPAT	0x7d	/* high layer compatibility		*/
#define IEI_USERUSER	0x7e	/* user-user				*/
#define IEI_ESCAPE	0x7f	/* escape for extension			*/

/* Q.932 variable length information element identifiers */

#define IEI_EXTFAC	0x0d	/* extended facility			*/
#define IEI_FACILITY	0x1c	/* facility				*/
#define IEI_INFOREQ	0x32	/* information request 			*/
#define IEI_FEATACT	0x38	/* feature activation 			*/
#define IEI_FEATIND	0x39	/* feature indication			*/
#define IEI_SERVPID	0x3a	/* service profile identification	*/
#define IEI_ENDPTID	0x3b	/* endpoint identifier			*/

/* Q.933 variable length information element identifiers */

#define IEI_DATALCID	0x19	/* data link connection identifier	*/
#define IEI_LLCOREP	0x48	/* link layer core parameters		*/
#define IEI_LLPROTP	0x49	/* link layer protocol parameters	*/
#define IEI_X213PRI	0x50	/* X.213 priority 			*/
#define IEI_REPORTT	0x51	/* report type				*/
#define IEI_LNKITYVERF	0x53	/* link integrity verification		*/
#define IEI_PVCSTAT	0x57	/* PVC status				*/

/* Q.95x variable length information element identifiers */

#define IEI_PRECLEV	0x41	/* precedence level			*/
#define IEI_CONCTDNO	0x4c	/* connected number			*/
#define IEI_CONCTDSA	0x4d	/* connected subaddress			*/
#define IEI_REDICNNO	0x76	/* redirection number			*/

/* single octett information elements */

#define SOIE_SHIFT	0x90	/* shift codeset			*/
#define	 SHIFT_LOCK	0x08	/* shift codeset, locking shift bit	*/
#define SOIE_MDSC	0xa0	/* more data AND/OR sending complete	*/
#define SOIE_SENDC	0xa1	/* sending complete			*/
#define SOIE_CONGL	0xb0	/* congestion level			*/
#define SOIE_REPTI	0xd0	/* repeat indicator			*/

/* codesets */

#define	CODESET_0	0	/* codeset 0, normal DSS1 codeset	*/

/* Q.931/Q.932 message types (see Q.931 03/93 p10 and p311) */

/* call establishment messages */

#define ALERT			0x01
#define CALL_PROCEEDING		0x02
#define PROGRESS		0x03
#define SETUP			0x05
#define CONNECT			0x07
#define SETUP_ACKNOWLEDGE	0x0d
#define CONNECT_ACKNOWLEDGE	0x0f

/* call information phase messages */

#define USER_INFORMATION	0x20
#define SUSPEND_REJECT		0x21
#define RESUME_REJECT		0x22
#define HOLD			0x24
#define SUSPEND			0x25
#define RESUME			0x26
#define HOLD_ACKNOWLEDGE	0x28
#define SUSPEND_ACKNOWLEDGE	0x2d
#define RESUME_ACKNOWLEDGE	0x2e
#define HOLD_REJECT		0x30
#define RETRIEVE		0x31
#define RETRIEVE_ACKNOWLEDGE	0x32
#define RETRIEVE_REJECT		0x37

/* call clearing */

#define DISCONNECT		0x45
#define RESTART			0x46
#define RELEASE			0x4d
#define RESTART_ACKNOWLEDGE	0x4e
#define RELEASE_COMPLETE	0x5a

/* misc messages */

#define SEGMENT			0x60
#define FACILITY		0x62
#define REGISTER		0x64
#define NOTIFY			0x6e
#define STATUS_ENQUIRY		0x75
#define CONGESTION_CONTROL	0x79
#define INFORMATION		0x7b
#define STATUS			0x7d

/* EOF */

#endif /* !_NETISDN_I4B_ISDBQ931_H_ */