blob: 7007b57589336aa41a8c391f04d1bd90a6f9de62 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI__LINUX_LLC_H
20#define _UAPI__LINUX_LLC_H
21#include <linux/socket.h>
22#define __LLC_SOCK_SIZE__ 16
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24struct sockaddr_llc {
Tao Baod7db5942015-01-28 10:07:51 -080025 __kernel_sa_family_t sllc_family;
26 __kernel_sa_family_t sllc_arphrd;
27 unsigned char sllc_test;
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 unsigned char sllc_xid;
30 unsigned char sllc_ua;
31 unsigned char sllc_sap;
32 unsigned char sllc_mac[IFHWADDRLEN];
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 unsigned char __pad[__LLC_SOCK_SIZE__ - sizeof(__kernel_sa_family_t) * 2 - sizeof(unsigned char) * 4 - IFHWADDRLEN];
Ben Cheng655a7c02013-10-16 16:09:24 -070035};
Ben Cheng655a7c02013-10-16 16:09:24 -070036enum llc_sockopts {
Tao Baod7db5942015-01-28 10:07:51 -080037 LLC_OPT_UNKNOWN = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 LLC_OPT_RETRY,
40 LLC_OPT_SIZE,
41 LLC_OPT_ACK_TMR_EXP,
42 LLC_OPT_P_TMR_EXP,
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 LLC_OPT_REJ_TMR_EXP,
45 LLC_OPT_BUSY_TMR_EXP,
46 LLC_OPT_TX_WIN,
47 LLC_OPT_RX_WIN,
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 LLC_OPT_PKTINFO,
50 LLC_OPT_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -070051};
52#define LLC_OPT_MAX_RETRY 100
Tao Baod7db5942015-01-28 10:07:51 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070054#define LLC_OPT_MAX_SIZE 4196
55#define LLC_OPT_MAX_WIN 127
Ben Cheng655a7c02013-10-16 16:09:24 -070056#define LLC_OPT_MAX_ACK_TMR_EXP 60
57#define LLC_OPT_MAX_P_TMR_EXP 60
Tao Baod7db5942015-01-28 10:07:51 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070059#define LLC_OPT_MAX_REJ_TMR_EXP 60
60#define LLC_OPT_MAX_BUSY_TMR_EXP 60
Ben Cheng655a7c02013-10-16 16:09:24 -070061#define LLC_SAP_NULL 0x00
62#define LLC_SAP_LLC 0x02
Tao Baod7db5942015-01-28 10:07:51 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070064#define LLC_SAP_SNA 0x04
65#define LLC_SAP_PNM 0x0E
Ben Cheng655a7c02013-10-16 16:09:24 -070066#define LLC_SAP_IP 0x06
67#define LLC_SAP_BSPAN 0x42
Tao Baod7db5942015-01-28 10:07:51 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070069#define LLC_SAP_MMS 0x4E
70#define LLC_SAP_8208 0x7E
Ben Cheng655a7c02013-10-16 16:09:24 -070071#define LLC_SAP_3COM 0x80
72#define LLC_SAP_PRO 0x8E
Tao Baod7db5942015-01-28 10:07:51 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070074#define LLC_SAP_SNAP 0xAA
75#define LLC_SAP_BANYAN 0xBC
Ben Cheng655a7c02013-10-16 16:09:24 -070076#define LLC_SAP_IPX 0xE0
77#define LLC_SAP_NETBEUI 0xF0
Tao Baod7db5942015-01-28 10:07:51 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070079#define LLC_SAP_LANMGR 0xF4
80#define LLC_SAP_IMPL 0xF8
Ben Cheng655a7c02013-10-16 16:09:24 -070081#define LLC_SAP_DISC 0xFC
82#define LLC_SAP_OSI 0xFE
Tao Baod7db5942015-01-28 10:07:51 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070084#define LLC_SAP_LAR 0xDC
85#define LLC_SAP_RM 0xD4
Ben Cheng655a7c02013-10-16 16:09:24 -070086#define LLC_SAP_GLOBAL 0xFF
87struct llc_pktinfo {
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 int lpi_ifindex;
90 unsigned char lpi_sap;
91 unsigned char lpi_mac[IFHWADDRLEN];
Ben Cheng655a7c02013-10-16 16:09:24 -070092};
Tao Baod7db5942015-01-28 10:07:51 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070094#endif