fddi.h revision 8876
17055Sdg/* 27055Sdg * Copyright (c) 1982, 1986, 1993 37055Sdg * The Regents of the University of California. All rights reserved. 47055Sdg * 57055Sdg * Redistribution and use in source and binary forms, with or without 67055Sdg * modification, are permitted provided that the following conditions 77055Sdg * are met: 87055Sdg * 1. Redistributions of source code must retain the above copyright 97055Sdg * notice, this list of conditions and the following disclaimer. 107055Sdg * 2. Redistributions in binary form must reproduce the above copyright 117055Sdg * notice, this list of conditions and the following disclaimer in the 127055Sdg * documentation and/or other materials provided with the distribution. 137055Sdg * 3. All advertising materials mentioning features or use of this software 147055Sdg * must display the following acknowledgement: 157055Sdg * This product includes software developed by the University of 167055Sdg * California, Berkeley and its contributors. 177055Sdg * 4. Neither the name of the University nor the names of its contributors 187055Sdg * may be used to endorse or promote products derived from this software 197055Sdg * without specific prior written permission. 207055Sdg * 217055Sdg * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 227055Sdg * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 237055Sdg * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 247055Sdg * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 257055Sdg * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 267055Sdg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 277055Sdg * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 287055Sdg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 297055Sdg * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 307055Sdg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 317055Sdg * SUCH DAMAGE. 327055Sdg * 337055Sdg * @(#)if_fddi.h 8.1 (Berkeley) 6/10/93 348876Srgrimes * $Id: if_fddi.h,v 1.1 1995/03/14 09:14:14 davidg Exp $ 357055Sdg */ 367055Sdg 377055Sdg#ifndef _NETINET_IF_FDDI_H_ 387055Sdg#define _NETINET_IF_FDDI_H_ 397055Sdg 407055Sdg/* 417055Sdg * Structure of an 100Mb/s FDDI header. 427055Sdg */ 437055Sdgstruct fddi_header { 447055Sdg u_char fddi_fc; 457055Sdg u_char fddi_dhost[6]; 467055Sdg u_char fddi_shost[6]; 477055Sdg}; 487055Sdg 497055Sdg#define FDDIMTU 4470 507055Sdg#define FDDIMIN 3 517055Sdg 527055Sdg#define FDDIFC_C 0x80 /* 0b10000000 */ 537055Sdg#define FDDIFC_L 0x40 /* 0b01000000 */ 547055Sdg#define FDDIFC_F 0x30 /* 0b00110000 */ 557055Sdg#define FDDIFC_Z 0x0F /* 0b00001111 */ 567055Sdg 577055Sdg#define FDDIFC_LLC_ASYNC 0x50 587055Sdg#define FDDIFC_LLC_PRIO0 0 597055Sdg#define FDDIFC_LLC_PRIO1 1 607055Sdg#define FDDIFC_LLC_PRIO2 2 617055Sdg#define FDDIFC_LLC_PRIO3 3 627055Sdg#define FDDIFC_LLC_PRIO4 4 637055Sdg#define FDDIFC_LLC_PRIO5 5 647055Sdg#define FDDIFC_LLC_PRIO6 6 657055Sdg#define FDDIFC_LLC_PRIO7 7 667055Sdg#define FDDIFC_LLC_SYNC 0xd0 677055Sdg#define FDDIFC_SMT 0x40 687055Sdg 697055Sdg#ifdef KERNEL 707055Sdg#define fddibroadcastaddr etherbroadcastaddr 717055Sdg#define fddi_ipmulticast_min ether_ipmulticast_min 727055Sdg#define fddi_ipmulticast_max ether_ipmulticast_max 737055Sdg#define fddi_addmulti ether_addmulti 747055Sdg#define fddi_delmulti ether_delmulti 757055Sdg#define fddi_sprintf ether_sprintf 767055Sdg 777055Sdgvoid fddi_ifattach __P((struct ifnet *)); 787055Sdgvoid fddi_input __P((struct ifnet *, struct fddi_header *, struct mbuf *)); 797055Sdgint fddi_output __P((struct ifnet *, 808876Srgrimes struct mbuf *, struct sockaddr *, struct rtentry *)); 817055Sdg 827055Sdg#endif 837055Sdg 847055Sdg#endif 85