blob: f59492f8eb68b47fef72e796cfcdedb6dabff31b [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef _LINUX_IF_FDDI_H
13#define _LINUX_IF_FDDI_H
Ben Cheng4b29af02012-03-07 16:14:53 -080014
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080015#define FDDI_K_ALEN 6
16#define FDDI_K_8022_HLEN 16
17#define FDDI_K_SNAP_HLEN 21
18#define FDDI_K_8022_ZLEN 16
19#define FDDI_K_SNAP_ZLEN 21
20#define FDDI_K_8022_DLEN 4475
21#define FDDI_K_SNAP_DLEN 4470
22#define FDDI_K_LLC_ZLEN 13
23#define FDDI_K_LLC_LEN 4491
Ben Cheng4b29af02012-03-07 16:14:53 -080024
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080025#define FDDI_FC_K_VOID 0x00
26#define FDDI_FC_K_NON_RESTRICTED_TOKEN 0x80
27#define FDDI_FC_K_RESTRICTED_TOKEN 0xC0
28#define FDDI_FC_K_SMT_MIN 0x41
29#define FDDI_FC_K_SMT_MAX 0x4F
30#define FDDI_FC_K_MAC_MIN 0xC1
31#define FDDI_FC_K_MAC_MAX 0xCF
32#define FDDI_FC_K_ASYNC_LLC_MIN 0x50
33#define FDDI_FC_K_ASYNC_LLC_DEF 0x54
34#define FDDI_FC_K_ASYNC_LLC_MAX 0x5F
35#define FDDI_FC_K_SYNC_LLC_MIN 0xD0
36#define FDDI_FC_K_SYNC_LLC_MAX 0xD7
37#define FDDI_FC_K_IMPLEMENTOR_MIN 0x60
38#define FDDI_FC_K_IMPLEMENTOR_MAX 0x6F
39#define FDDI_FC_K_RESERVED_MIN 0x70
40#define FDDI_FC_K_RESERVED_MAX 0x7F
Ben Cheng4b29af02012-03-07 16:14:53 -080041
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080042#define FDDI_EXTENDED_SAP 0xAA
43#define FDDI_UI_CMD 0x03
Ben Cheng4b29af02012-03-07 16:14:53 -080044
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080045struct fddi_8022_1_hdr
46 {
47 __u8 dsap;
48 __u8 ssap;
49 __u8 ctrl;
50 } __attribute__ ((packed));
Ben Cheng4b29af02012-03-07 16:14:53 -080051
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080052struct fddi_8022_2_hdr
53 {
54 __u8 dsap;
55 __u8 ssap;
56 __u8 ctrl_1;
57 __u8 ctrl_2;
58 } __attribute__ ((packed));
Ben Cheng4b29af02012-03-07 16:14:53 -080059
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080060#define FDDI_K_OUI_LEN 3
61struct fddi_snap_hdr
62 {
63 __u8 dsap;
64 __u8 ssap;
65 __u8 ctrl;
66 __u8 oui[FDDI_K_OUI_LEN];
67 __be16 ethertype;
68 } __attribute__ ((packed));
Ben Cheng4b29af02012-03-07 16:14:53 -080069
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080070struct fddihdr
71 {
72 __u8 fc;
73 __u8 daddr[FDDI_K_ALEN];
74 __u8 saddr[FDDI_K_ALEN];
75 union
76 {
77 struct fddi_8022_1_hdr llc_8022_1;
78 struct fddi_8022_2_hdr llc_8022_2;
79 struct fddi_snap_hdr llc_snap;
80 } hdr;
81 } __attribute__ ((packed));
Ben Cheng4b29af02012-03-07 16:14:53 -080082
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080083#endif