Annotation of kernel/bsd/netat/at/appletalk.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: /* Miscellaneous definitions for AppleTalk used by all protocol 
        !            36:  * modules.
        !            37:  */
        !            38: 
        !            39: #ifndef __APPLETALK__
        !            40: #define __APPLETALK__
        !            41: 
        !            42: # include <sys/types.h>
        !            43: 
        !            44: 
        !            45: /* New fundemental types: non-aligned variations of u_short and u_long */
        !            46: typedef u_char ua_short[2];            /* Unaligned short */
        !            47: typedef u_char ua_long[4];             /* Unaligned long */
        !            48: 
        !            49: 
        !            50: /* Two at_net typedefs; the first is aligned the other isn't */
        !            51: typedef u_short at_net_al;             /* Aligned AppleTalk network number */
        !            52: typedef ua_short at_net_unal;          /* Unaligned AppleTalk network number */
        !            53: 
        !            54: /* Miscellaneous types */
        !            55: 
        !            56: typedef at_net_unal at_net;            /* Default: Unaligned AppleTalk network number */
        !            57: typedef u_char at_node;                /* AppleTalk node number */
        !            58: typedef u_char  at_socket;             /* AppleTalk socket number */
        !            59: 
        !            60: /* AppleTalk Internet Address */
        !            61: 
        !            62: typedef struct at_inet {
        !            63:     at_net     net;                    /* Network Address */
        !            64:     at_node    node;                   /* Node number */
        !            65:     at_socket  socket;                 /* Socket number */
        !            66: } at_inet_t;
        !            67: 
        !            68: 
        !            69: /* AppleTalk protocol retry and timeout */
        !            70: 
        !            71: typedef struct at_retry {
        !            72:     short      interval;               /* Retry interval in seconds */
        !            73:     short      retries;                /* Maximum number of retries */
        !            74:     u_char      backoff;                /* Retry backoff, must be 1 through 4 */
        !            75: } at_retry_t;
        !            76: 
        !            77: 
        !            78: struct atalk_addr {
        !            79:        u_char  atalk_unused;
        !            80:        at_net  atalk_net;
        !            81:        at_node atalk_node;
        !            82: };
        !            83: 
        !            84: #define ATPROTO_NONE  0
        !            85: #define ATPROTO_DDP   1
        !            86: #define ATPROTO_LAP   2
        !            87: #define ATPROTO_ATP   3
        !            88: #define ATPROTO_ASP   4
        !            89: #define ATPROTO_AURP  5
        !            90: #define ATPROTO_ADSP  6
        !            91: #define ATPROTO_LOOP  7  /* not used */
        !            92: 
        !            93: #endif /*  #ifndef __APPLETALK__ */

unix.superglobalmegacorp.com

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