|
|
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: /*
26: * Mach Operating System
27: * Copyright (c) 1987 Carnegie-Mellon University
28: * All rights reserved. The CMU software License Agreement specifies
29: * the terms and conditions for use and redistribution.
30: */
31:
32: /*
33: * Copyright (c) 1982, 1986 Regents of the University of California.
34: * All rights reserved.
35: *
36: * Redistribution and use in source and binary forms are permitted
37: * provided that this notice is preserved and that due credit is given
38: * to the University of California at Berkeley. The name of the University
39: * may not be used to endorse or promote products derived from this
40: * software without specific prior written permission. This software
41: * is provided ``as is'' without express or implied warranty.
42: *
43: * HISTORY
44: * 11-Jul-93 Mac Gillon (mgillon) at NeXT
45: * Integrated MULTICAST support
46: *
47: * 09-Apr-90 Bradley Taylor (btaylor) at NeXT, Inc.
48: * Created. Originally part of <netinet/if_ether.h>.
49: */
50: #ifndef _ETHERDEFS_
51: #define _ETHERDEFS_
52:
53: #include <bsd/netinet/if_ether.h>
54: /*
55: * Ethernet address - 6 octets
56: */
57: #define NUM_EN_ADDR_BYTES 6
58:
59:
60: typedef struct ether_addr enet_addr_t;
61:
62: typedef struct ether_header ether_header_t;
63:
64: #define IFTYPE_ETHERNET "10MB Ethernet"
65:
66: #define ETHERHDRSIZE 14
67: #define ETHERMAXPACKET (ETHERHDRSIZE + ETHERMTU)
68: #define ETHERMINPACKET 64
69: #define ETHERCRC 4
70:
71: /*
72: * Byte and bit in an enet_addr_t defining individual/group destination.
73: */
74: #define EA_GROUP_BYTE 0
75: #define EA_GROUP_BIT 0x01
76:
77:
78: #endif /* _ETHERDEFS_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.