2 * Broadcom Ethernettype protocol definitions
4 * Copyright 2007, Broadcom Corporation
7 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
15 * Broadcom Ethernet protocol defines
21 /* enable structure packing */
23 #define PACKED __attribute__((packed))
29 /* ETHER_TYPE_BRCM is defined in ethernet.h */
32 * Following the 2byte BRCM ether_type is a 16bit BRCM subtype field
33 * in one of two formats: (only subtypes 32768-65535 are in use now)
36 * 8 bit subtype (0-127)
37 * 8 bit length in bytes (0-255)
39 * subtypes 32768-65535:
40 * 16 bit big-endian subtype
41 * 16 bit big-endian length in bytes (0-65535)
43 * length is the number of additional bytes beyond the 4 or 6 byte header
47 * 5-15 reserved for iLine protocol assignments
48 * 17-126 reserved, assignable
51 * 32769-65534 reserved, assignable
56 * While adding the subtypes and their specific processing code make sure
57 * bcmeth_bcm_hdr_t is the first data structure in the user specific data structure definition
60 #define BCMILCP_SUBTYPE_RATE 1
61 #define BCMILCP_SUBTYPE_LINK 2
62 #define BCMILCP_SUBTYPE_CSA 3
63 #define BCMILCP_SUBTYPE_LARQ 4
64 #define BCMILCP_SUBTYPE_VENDOR 5
65 #define BCMILCP_SUBTYPE_FLH 17
67 #define BCMILCP_SUBTYPE_VENDOR_LONG 32769
68 #define BCMILCP_SUBTYPE_CERT 32770
69 #define BCMILCP_SUBTYPE_SES 32771
72 #define BCMILCP_BCM_SUBTYPE_RESERVED 0
73 #define BCMILCP_BCM_SUBTYPE_EVENT 1
74 #define BCMILCP_BCM_SUBTYPE_SES 2
76 * The EAPOL type is not used anymore. Instead EAPOL messages are now embedded
77 * within BCMILCP_BCM_SUBTYPE_EVENT type messages
79 /* #define BCMILCP_BCM_SUBTYPE_EAPOL 3 */
81 #define BCMILCP_BCM_SUBTYPEHDR_MINLENGTH 8
82 #define BCMILCP_BCM_SUBTYPEHDR_VERSION 0
84 /* These fields are stored in network order */
85 typedef struct bcmeth_hdr
87 uint16 subtype
; /* Vendor specific..32769 */
89 uint8 version
; /* Version is 0 */
90 uint8 oui
[3]; /* Broadcom OUI */
91 /* user specific Data */
93 } PACKED bcmeth_hdr_t
;
96 #if !defined(__GNUC__)
100 #endif /* _BCMETH_H_ */
This page took 0.079156 seconds and 5 git commands to generate.