Annotation of kernel/bsd/netinet/if_fddi.h, revision 1.1.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: /* Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved */
                     26: /*
                     27:  * Copyright (c) 1982, 1986, 1993
                     28:  *     The Regents of the University of California.  All rights reserved.
                     29:  *
                     30:  * The NEXTSTEP Software License Agreement specifies the terms
                     31:  * and conditions for redistribution.
                     32:  *
                     33:  */
                     34: 
                     35: #ifndef _NETINET_IF_FDDI_H_
                     36: #define _NETINET_IF_FDDI_H_
                     37: 
                     38: /*
                     39:  * Structure of an 100Mb/s FDDI header.
                     40:  */
                     41: struct fddi_header {
                     42:        u_char  fddi_fc;
                     43:        u_char  fddi_dhost[6];
                     44:        u_char  fddi_shost[6];
                     45: };
                     46: 
                     47: #define        FDDIMTU                 4470
                     48: #define        FDDIMIN                 3
                     49: 
                     50: #define        FDDIFC_C                0x80    /* 0b10000000 */
                     51: #define        FDDIFC_L                0x40    /* 0b01000000 */
                     52: #define        FDDIFC_F                0x30    /* 0b00110000 */
                     53: #define        FDDIFC_Z                0x0F    /* 0b00001111 */
                     54: 
                     55: #define        FDDIFC_LLC_ASYNC        0x50
                     56: #define        FDDIFC_LLC_PRIO0        0
                     57: #define        FDDIFC_LLC_PRIO1        1
                     58: #define        FDDIFC_LLC_PRIO2        2
                     59: #define        FDDIFC_LLC_PRIO3        3
                     60: #define        FDDIFC_LLC_PRIO4        4
                     61: #define        FDDIFC_LLC_PRIO5        5
                     62: #define        FDDIFC_LLC_PRIO6        6
                     63: #define        FDDIFC_LLC_PRIO7        7
                     64: #define FDDIFC_LLC_SYNC         0xd0
                     65: #define        FDDIFC_SMT              0x40
                     66: 
                     67: #ifdef _KERNEL
                     68: #define        fddibroadcastaddr       etherbroadcastaddr
                     69: #define        fddi_ipmulticast_min    ether_ipmulticast_min
                     70: #define        fddi_ipmulticast_max    ether_ipmulticast_max
                     71: #define        fddi_addmulti           ether_addmulti
                     72: #define        fddi_delmulti           ether_delmulti
                     73: #define        fddi_sprintf            ether_sprintf
                     74: 
                     75: void    fddi_ifattach __P((struct ifnet *));
                     76: void    fddi_input __P((struct ifnet *, struct fddi_header *, struct mbuf *));
                     77: int     fddi_output __P((struct ifnet *,
                     78:            struct mbuf *, struct sockaddr *, struct rtentry *));
                     79: 
                     80: #endif
                     81: 
                     82: #endif

unix.superglobalmegacorp.com

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