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