ebt_802_3.h revision 96c1db7b9d601c31d103389cac074a6cce0d7633
1/**************************************************************************** 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_BRIDGE_EBT_802_3_H 20#define _UAPI__LINUX_BRIDGE_EBT_802_3_H 21#include <linux/types.h> 22#include <linux/if_ether.h> 23#define EBT_802_3_SAP 0x01 24#define EBT_802_3_TYPE 0x02 25#define EBT_802_3_MATCH "802_3" 26#define CHECK_TYPE 0xaa 27#define IS_UI 0x03 28#define EBT_802_3_MASK (EBT_802_3_SAP | EBT_802_3_TYPE | EBT_802_3) 29struct hdr_ui { 30 __u8 dsap; 31 __u8 ssap; 32 __u8 ctrl; 33 __u8 orig[3]; 34 __be16 type; 35}; 36struct hdr_ni { 37 __u8 dsap; 38 __u8 ssap; 39 __be16 ctrl; 40 __u8 orig[3]; 41 __be16 type; 42}; 43struct ebt_802_3_hdr { 44 __u8 daddr[ETH_ALEN]; 45 __u8 saddr[ETH_ALEN]; 46 __be16 len; 47 union { 48 struct hdr_ui ui; 49 struct hdr_ni ni; 50 } llc; 51}; 52struct ebt_802_3_info { 53 __u8 sap; 54 __be16 type; 55 __u8 bitmask; 56 __u8 invflags; 57}; 58#endif 59