Annotation of kernel/bsd/netat/at/zip.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:  * ORIGINS: 82
        !            28:  *
        !            29:  * APPLE CONFIDENTIAL
        !            30:  * (C) COPYRIGHT Apple Computer, Inc. 1992-1996
        !            31:  * All Rights Reserved
        !            32:  *
        !            33:  */                                                                   
        !            34: 
        !            35: #ifndef __ZIP__
        !            36: #define        __ZIP__
        !            37: 
        !            38: /* Definitions for ZIP, per AppleTalk Zone Information Protocol
        !            39:  * documentation from `Inside AppleTalk', July 14, 1986.
        !            40:  */
        !            41: 
        !            42: # include <at/nbp.h>
        !            43: 
        !            44: /* ZIP DDP socket type */
        !            45: 
        !            46: #define ZIP_SOCKET             6       /* ZIP socket number */
        !            47: 
        !            48: /* ZIP packet types */
        !            49: 
        !            50: #define ZIP_DDP_TYPE           6       /* ZIP packet */
        !            51: 
        !            52: #define ZIP_QUERY              1       /* ZIP zone query packet */
        !            53: #define ZIP_REPLY              2       /* ZIP query reply packet */
        !            54: #define ZIP_TAKEDOWN           3       /* ZIP takedown packet */
        !            55: #define ZIP_BRINGUP            4       /* ZIP bringup packet */
        !            56: #define ZIP_GETNETINFO         5       /* ZIP DDP get net info packet */
        !            57: #define        ZIP_NETINFO_REPLY       6       /* ZIP GetNetInfo Reply */
        !            58: #define ZIP_NOTIFY             7       /* Notification of zone name change */
        !            59: #define ZIP_EXTENDED_REPLY     8       /* ZIP extended query reply packet */ 
        !            60: 
        !            61: #define ZIP_GETMYZONE          7       /* ZIP ATP get my zone packet */
        !            62: #define ZIP_GETZONELIST        8       /* ZIP ATP get zone list packet */
        !            63: #define        ZIP_GETLOCALZONES       9       /* ZIP ATP get cable list packet*/
        !            64: 
        !            65: #define ZIP_HDR_SIZE           2
        !            66: #define        ZIP_DATA_SIZE           584
        !            67: 
        !            68: 
        !            69: #define ZIP_MAX_ZONE_LENGTH    32                      /* Max length for a Zone Name */
        !            70: 
        !            71: typedef        struct at_zip {
        !            72:        u_char  command;
        !            73:        u_char  flags;
        !            74:        char    data[ZIP_DATA_SIZE];
        !            75: } at_zip_t;
        !            76: 
        !            77: #define         ZIP_ZIP(c)     ((at_zip_t *)(&((at_ddp_t *)(c))->data[0]))
        !            78: 
        !            79: /* ioctl codes */
        !            80: #define        ZIP_IOC_MYIOCTL(i)      ((i>>8) == AT_MID_ZIP)
        !            81: #define        ZIP_IOC_GET_CFG         ((AT_MID_ZIP<<8) | 1)
        !            82: 
        !            83: typedef struct {
        !            84:        at_nvestr_t     zonename;
        !            85: } at_zip_cfg_t;
        !            86: 
        !            87: #endif /* __ZIP__ */

unix.superglobalmegacorp.com

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