pppio.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* pppio.h - ioctl and other misc. definitions for STREAMS modules.
*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Copyright (c) 1994 The Australian National University.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation is hereby granted, provided that the above copyright
* notice appears in all copies. This software is provided without any
* warranty, express or implied. The Australian National University
* makes no representations about the suitability of this software for
* any purpose.
*
* IN NO EVENT SHALL THE AUSTRALIAN NATIONAL UNIVERSITY BE LIABLE TO ANY
* PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
* THE AUSTRALIAN NATIONAL UNIVERSITY HAVE BEEN ADVISED OF THE POSSIBILITY
* OF SUCH DAMAGE.
*
* THE AUSTRALIAN NATIONAL UNIVERSITY SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND THE AUSTRALIAN NATIONAL UNIVERSITY HAS NO
* OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
* OR MODIFICATIONS.
*
* $Id: pppio.h,v 1.8 1996/08/28 06:36:51 paulus Exp $
*/
#ifndef __PPPIO_H
#define __PPPIO_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/* Values for PPPIO_MUX FLAGS */
/*
* Values for PPPIO_CFLAGS. Data sent in is u_int32_t val[2], where
* result is newflags = val[0] | (oldflags & ~val[1]). Returned data
* is a single u_int32_t, containing the current flags.
*/
/*
* Values for PPPIO_XFCS/PPPIO_RFCS. (Note that we don't support
* simultaneous use of 16 bit and 32 bit CRCs.)
*/
#define PPPFCS_16 0 /* The default, usually; CRC-16 */
/*
* Values for 8-bit-clean flags.
*/
/*
* Values for the first byte of M_CTL messages passed between
* PPP modules.
*/
/*
* Values for the u_int32_t argument to PPPIO_DEBUG.
*/
#define PPPDBG_DRIVER 0 /* identifies ppp driver as target */
/*
* Values for the u_int32_t return from PPPIO_GTYPE. Only lastmod
* should respond. Current modules return PPPTYP_AHDLC (async
* module), PPPTYP_HC (compression module) and PPPTYP_MUX (PPP
* interface driver).
*/
#define PPPTYP_HDLC 0 /* raw HDLC I/O; no PPP handling */
#ifdef SOL2
/* Officially allocated module numbers */
#define PPP_DRV_NAME "sppp"
#define AHDLC_MOD_NAME "spppasyn"
#define COMP_MOD_NAME "spppcomp"
#define TUN_MOD_NAME "sppptun"
#define MP_MOD_NAME "spppmp"
#else
#define PPP_MOD_ID 0xb1a6
#define COMP_MOD_ID 0xbadf
#define AHDLC_MOD_ID 0x7d23
#define PPP_DRV_NAME "ppp"
#define AHDLC_MOD_NAME "ppp_ahdl"
#define COMP_MOD_NAME "ppp_comp"
#endif
#ifdef __cplusplus
}
#endif
#endif /* __PPPIO_H */