2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * Mach Operating System
24 * Copyright (c) 1987 Carnegie-Mellon University
25 * All rights reserved. The CMU software License Agreement specifies
26 * the terms and conditions for use and redistribution.
30 * Copyright (c) 1982, 1986 Regents of the University of California.
31 * All rights reserved.
33 * Redistribution and use in source and binary forms are permitted
34 * provided that this notice is preserved and that due credit is given
35 * to the University of California at Berkeley. The name of the University
36 * may not be used to endorse or promote products derived from this
37 * software without specific prior written permission. This software
38 * is provided ``as is'' without express or implied warranty.
41 * 11-Jul-93 Mac Gillon (mgillon) at NeXT
42 * Integrated MULTICAST support
44 * 09-Apr-90 Bradley Taylor (btaylor) at NeXT, Inc.
45 * Created. Originally part of <netinet/if_ether.h>.
49 #include <sys/appleapiopts.h>
50 #if !defined(KERNEL) || defined(__APPLE_API_OBSOLETE)
52 #include <net/ethernet.h>
53 #warning net/etherdefs.h is obsolete! Use net/ethernet.h
55 #include <netinet/if_ether.h>
58 * Ethernet address - 6 octets
60 #define NUM_EN_ADDR_BYTES ETHER_ADDR_LEN
63 typedef struct ether_addr enet_addr_t
;
65 typedef struct ether_header ether_header_t
;
67 #define IFTYPE_ETHERNET "10MB Ethernet"
69 #define ETHERHDRSIZE ETHER_HDR_LEN
70 #define ETHERMAXPACKET ETHER_MAX_LEN
71 #define ETHERMINPACKET ETHER_MIN_LEN
72 #define ETHERCRC ETHER_CRC_LEN
75 * Byte and bit in an enet_addr_t defining individual/group destination.
77 #define EA_GROUP_BYTE 0
78 #define EA_GROUP_BIT 0x01
81 #endif /* KERNEL && !__APPLE_API_OBSOLETE */
82 #endif /* _ETHERDEFS_ */