1 /****************************************************************************
2 ****************************************************************************
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.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _LINUX_IF_HIPPI_H
13 #define _LINUX_IF_HIPPI_H
15 #include <asm/byteorder.h>
18 #define HIPPI_HLEN sizeof(struct hippi_hdr)
20 #define HIPPI_DATA_LEN 65280
21 #define HIPPI_FRAME_LEN (HIPPI_DATA_LEN + HIPPI_HLEN)
23 #define HIPPI_EXTENDED_SAP 0xAA
24 #define HIPPI_UI_CMD 0x03
26 struct hipnet_statistics
42 int tx_aborted_errors;
43 int tx_carrier_errors;
45 int tx_heartbeat_errors;
53 } __attribute__ ((packed));
57 #ifdef __BIG_ENDIAN_BITFIELD
61 #elif defined(__LITTLE_ENDIAN_BITFIELD)
66 __u8 dest_switch_addr[3];
67 #ifdef __BIG_ENDIAN_BITFIELD
68 __u8 dest_addr_type:4,
70 #elif defined(__LITTLE_ENDIAN_BITFIELD)
74 __u8 src_switch_addr[3];
76 __u8 daddr[HIPPI_ALEN];
77 __u16 locally_administered;
78 __u8 saddr[HIPPI_ALEN];
79 } __attribute__ ((packed));
81 #define HIPPI_OUI_LEN 3
88 __u8 oui[HIPPI_OUI_LEN];
90 } __attribute__ ((packed));
94 struct hippi_fp_hdr fp;
95 struct hippi_le_hdr le;
96 struct hippi_snap_hdr snap;
97 } __attribute__ ((packed));