fddi.h revision 21673
1/* 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 3. All advertising materials mentioning features or use of this software 14 * must display the following acknowledgement: 15 * This product includes software developed by the University of 16 * California, Berkeley and its contributors. 17 * 4. Neither the name of the University nor the names of its contributors 18 * may be used to endorse or promote products derived from this software 19 * without specific prior written permission. 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)if_fddi.h 8.1 (Berkeley) 6/10/93 34 * $FreeBSD: head/sys/net/fddi.h 21673 1997-01-14 07:20:47Z jkh $ 35 */ 36 37#ifndef _NETINET_IF_FDDI_H_ 38#define _NETINET_IF_FDDI_H_ 39 40/* 41 * Structure of an 100Mb/s FDDI header. 42 */ 43struct fddi_header { 44 u_char fddi_fc; 45 u_char fddi_dhost[6]; 46 u_char fddi_shost[6]; 47}; 48 49#define FDDIMTU 4470 50#define FDDIMIN 3 51 52#define FDDIFC_C 0x80 /* 0b10000000 */ 53#define FDDIFC_L 0x40 /* 0b01000000 */ 54#define FDDIFC_F 0x30 /* 0b00110000 */ 55#define FDDIFC_Z 0x0F /* 0b00001111 */ 56 57#define FDDIFC_LLC_ASYNC 0x50 58#define FDDIFC_LLC_PRIO0 0 59#define FDDIFC_LLC_PRIO1 1 60#define FDDIFC_LLC_PRIO2 2 61#define FDDIFC_LLC_PRIO3 3 62#define FDDIFC_LLC_PRIO4 4 63#define FDDIFC_LLC_PRIO5 5 64#define FDDIFC_LLC_PRIO6 6 65#define FDDIFC_LLC_PRIO7 7 66#define FDDIFC_LLC_SYNC 0xd0 67#define FDDIFC_SMT 0x40 68 69#ifdef KERNEL 70#define fddibroadcastaddr etherbroadcastaddr 71#define fddi_ipmulticast_min ether_ipmulticast_min 72#define fddi_ipmulticast_max ether_ipmulticast_max 73#define fddi_addmulti ether_addmulti 74#define fddi_delmulti ether_delmulti 75 76void fddi_ifattach __P((struct ifnet *)); 77void fddi_input __P((struct ifnet *, struct fddi_header *, struct mbuf *)); 78int fddi_output __P((struct ifnet *, 79 struct mbuf *, struct sockaddr *, struct rtentry *)); 80 81#endif 82 83#endif 84