Annotation of kernel/bsd/netat/h/llap.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
        !             3:  *
        !             4:  * @APPLE_LICENSE_HEADER_START@
        !             5:  * 
        !             6:  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
        !             7:  * Reserved.  This file contains Original Code and/or Modifications of
        !             8:  * Original Code as defined in and that are subject to the Apple Public
        !             9:  * Source License Version 1.1 (the "License").  You may not use this file
        !            10:  * except in compliance with the License.  Please obtain a copy of the
        !            11:  * License at http://www.apple.com/publicsource and read it before using
        !            12:  * this file.
        !            13:  * 
        !            14:  * The Original Code and all software distributed under the License are
        !            15:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
        !            16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
        !            17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
        !            18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
        !            19:  * License for the specific language governing rights and limitations
        !            20:  * under the License.
        !            21:  * 
        !            22:  * @APPLE_LICENSE_HEADER_END@
        !            23:  */
        !            24: 
        !            25: 
        !            26: /*
        !            27:  *     Copyright (c) 1988, 1989 Apple Computer, Inc. 
        !            28:  *
        !            29:  *     The information contained herein is subject to change without
        !            30:  *     notice and  should not be  construed as a commitment by Apple
        !            31:  *     Computer, Inc. Apple Computer, Inc. assumes no responsibility
        !            32:  *     for any errors that may appear.
        !            33:  *
        !            34:  *     Confidential and Proprietary to Apple Computer, Inc.
        !            35:  */
        !            36: 
        !            37: /* @(#)llap.h: 2.0, 1.5; 7/10/91; Copyright 1988-89, Apple Computer, Inc. */
        !            38: 
        !            39: #ifndef __LLAP__
        !            40: #define __LLAP__
        !            41: 
        !            42: # include <h/lap.h>
        !            43: 
        !            44: /* LLAP packet definitions */
        !            45: 
        !            46: #define  LLAP_HDR_SIZE                 3       /* LAP header size.     */
        !            47: #define  LLAP_DATA_SIZE              600       /* LAP data size.       */
        !            48: #define  LLAP_SIZE                   603       /* LAP frame size.      */
        !            49: 
        !            50: 
        !            51: /* LLAP header */
        !            52: 
        !            53: typedef struct {
        !            54:         at_node  destination;                  /* Destination address. */
        !            55:         at_node  source;                       /* Source address.      */
        !            56:         u_char   type;                         /* Frame type.          */
        !            57: } at_llap_hdr_t;
        !            58: 
        !            59: 
        !            60: /* LLAP packet */
        !            61:   
        !            62: typedef struct {
        !            63:         at_node  destination;                  /* Destination address. */
        !            64:         at_node  source;                       /* Source address.      */
        !            65:         u_char   type;                         /* Frame type.          */
        !            66:         char     data[LLAP_DATA_SIZE];         /* data area.           */
        !            67: } at_llap_t;
        !            68: 
        !            69: 
        !            70: /* LLAP ioctl and driver definitions */
        !            71: 
        !            72: #define        LLAP_IOC_MYIOCTL(i)     ((i>>8) == AT_MID_LLAP)
        !            73: #define        LLAP_IOC_GET_CFG        ((AT_MID_LLAP<<8) | 1)
        !            74: #define        LLAP_IOC_GET_STATS      ((AT_MID_LLAP<<8) | 2)
        !            75: #define        LLAP_IOC_SET_CFG        ((AT_MID_LLAP<<8) | 3)
        !            76: 
        !            77: typedef struct {
        !            78:        u_long  unknown_irupts;         /* number of unexpected interrupts, recovery */
        !            79:        u_long  unknown_mblks;          /* number of unknown stream messages */
        !            80:        u_long  ioc_unregistered;       /* number of AT_SYNCs on sockets that closed */
        !            81:                                        /* before it filtered through q for response */
        !            82:        u_long  timeouts;               /* number of state timeouts occured */
        !            83:        u_long  rcv_bytes;              /* number of productive data bytes received */
        !            84:        u_long  rcv_packets;            /* number of productive packets received */
        !            85:        u_long  type_unregistered;      /* number of packets thrown away because */
        !            86:                                        /* no one is no one listenning for it */
        !            87:        u_long  overrun_errors;         /* number of overruns received */
        !            88:        u_long  abort_errors;           /* number of aborts received */
        !            89:        u_long  crc_errors;             /* number of crc errors received */
        !            90:        u_long  too_long_errors;        /* number of packets which are too big */
        !            91:        u_long  too_short_errors;       /* number of packets which are too small */
        !            92:        u_long  missing_sync_irupt;     /* number of missing sync interrupts while */
        !            93:                                        /* while waiting for access to a busy net */
        !            94:        u_long  xmit_bytes;             /* number of productive data bytes xmited */
        !            95:        u_long  xmit_packets;           /* number of productive packets xmited */
        !            96:        u_long  collisions;             /* number of collisions on xmit */
        !            97:        u_long  defers;                 /* number of defers on xmit */
        !            98:        u_long  underrun_errors;        /* number of underruns transmitted */
        !            99: } at_llap_stats_t;
        !           100: 
        !           101: typedef struct {
        !           102:         short    network_up;   /* 0=network down, nonzero up.  */
        !           103:        short   filler; 
        !           104:         int      node;         /* Our node number.             */
        !           105:         int      initial_node;  /* Our initial node address.    */
        !           106:         int      rts_attempts;  /* RTS attempts on write.       */
        !           107: } at_llap_cfg_t;
        !           108: 
        !           109: /* Miscellaneous definitions */
        !           110: 
        !           111: #define  LLAP_TYPE_DDP              0x01  /* DDP short header packet.      */
        !           112: #define  LLAP_TYPE_DDP_X            0x02  /* DDP extended header packet.   */
        !           113: 
        !           114: #endif /* __LLAP__ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.