1/*
2 * Copyright (C) 2013, Broadcom Corporation
3 * All Rights Reserved.
4 *
5 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
6 * the contents of this file may not be disclosed to third parties, copied
7 * or duplicated in any form, in whole or in part, without the prior
8 * written permission of Broadcom Corporation.
9 *
10 * Fundamental constants relating to 802.3
11 *
12 * $Id: 802.3.h 323393 2012-03-23 23:32:14Z $
13 */
14
15#ifndef _802_3_h_
16#define _802_3_h_
17
18/* This marks the start of a packed structure section. */
19#include <packed_section_start.h>
20
21#define SNAP_HDR_LEN	6	/* 802.3 SNAP header length */
22#define DOT3_OUI_LEN	3	/* 802.3 oui length */
23
24BWL_PRE_PACKED_STRUCT struct dot3_mac_llc_snap_header {
25	uint8	ether_dhost[ETHER_ADDR_LEN];	/* dest mac */
26	uint8	ether_shost[ETHER_ADDR_LEN];	/* src mac */
27	uint16	length;				/* frame length incl header */
28	uint8	dsap;				/* always 0xAA */
29	uint8	ssap;				/* always 0xAA */
30	uint8	ctl;				/* always 0x03 */
31	uint8	oui[DOT3_OUI_LEN];		/* RFC1042: 0x00 0x00 0x00
32						 * Bridge-Tunnel: 0x00 0x00 0xF8
33						 */
34	uint16	type;				/* ethertype */
35} BWL_POST_PACKED_STRUCT;
36
37/* This marks the end of a packed structure section. */
38#include <packed_section_end.h>
39
40#endif	/* #ifndef _802_3_h_ */
41