175115Sfenner/*
275115Sfenner * Copyright (c) 1982, 1986, 1993
375115Sfenner *	The Regents of the University of California.  All rights reserved.
475115Sfenner *
575115Sfenner * Redistribution and use in source and binary forms, with or without
675115Sfenner * modification, are permitted provided that the following conditions
775115Sfenner * are met:
875115Sfenner * 1. Redistributions of source code must retain the above copyright
975115Sfenner *    notice, this list of conditions and the following disclaimer.
1075115Sfenner * 2. Redistributions in binary form must reproduce the above copyright
1175115Sfenner *    notice, this list of conditions and the following disclaimer in the
1275115Sfenner *    documentation and/or other materials provided with the distribution.
1375115Sfenner * 3. All advertising materials mentioning features or use of this software
1475115Sfenner *    must display the following acknowledgement:
1575115Sfenner *	This product includes software developed by the University of
1675115Sfenner *	California, Berkeley and its contributors.
1775115Sfenner * 4. Neither the name of the University nor the names of its contributors
1875115Sfenner *    may be used to endorse or promote products derived from this software
1975115Sfenner *    without specific prior written permission.
2075115Sfenner *
2175115Sfenner * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2275115Sfenner * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2375115Sfenner * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2475115Sfenner * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2575115Sfenner * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2675115Sfenner * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2775115Sfenner * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2875115Sfenner * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2975115Sfenner * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3075115Sfenner * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3175115Sfenner * SUCH DAMAGE.
3275115Sfenner *
3375115Sfenner *	@(#)if_ether.h	8.3 (Berkeley) 5/2/95
3475115Sfenner */
3575115Sfenner
3675115Sfenner#define	ETHERMTU	1500
3775115Sfenner
3875115Sfenner/*
3975115Sfenner * The number of bytes in an ethernet (MAC) address.
4075115Sfenner */
4175115Sfenner#define	ETHER_ADDR_LEN		6
4275115Sfenner
4375115Sfenner/*
4475115Sfenner * Structure of a DEC/Intel/Xerox or 802.3 Ethernet header.
4575115Sfenner */
4675115Sfennerstruct	ether_header {
47276788Sdelphij	uint8_t		ether_dhost[ETHER_ADDR_LEN];
48276788Sdelphij	uint8_t		ether_shost[ETHER_ADDR_LEN];
49276788Sdelphij	uint16_t	ether_type;
5075115Sfenner};
5175115Sfenner
5275115Sfenner/*
5375115Sfenner * Length of a DEC/Intel/Xerox or 802.3 Ethernet header; note that some
5475115Sfenner * compilers may pad "struct ether_header" to a multiple of 4 bytes,
5575115Sfenner * for example, so "sizeof (struct ether_header)" may not give the right
5675115Sfenner * answer.
5775115Sfenner */
5875115Sfenner#define ETHER_HDRLEN		14
59