~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/netfilter_bridge/ebt_802_3.h

Version: ~ [ linux-5.1-rc5 ] ~ [ linux-5.0.7 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.34 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.111 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.168 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.178 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.138 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.65 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 #ifndef _UAPI__LINUX_BRIDGE_EBT_802_3_H
  3 #define _UAPI__LINUX_BRIDGE_EBT_802_3_H
  4 
  5 #include <linux/types.h>
  6 #include <linux/if_ether.h>
  7 
  8 #define EBT_802_3_SAP 0x01
  9 #define EBT_802_3_TYPE 0x02
 10 
 11 #define EBT_802_3_MATCH "802_3"
 12 
 13 /*
 14  * If frame has DSAP/SSAP value 0xaa you must check the SNAP type
 15  * to discover what kind of packet we're carrying. 
 16  */
 17 #define CHECK_TYPE 0xaa
 18 
 19 /*
 20  * Control field may be one or two bytes.  If the first byte has
 21  * the value 0x03 then the entire length is one byte, otherwise it is two.
 22  * One byte controls are used in Unnumbered Information frames.
 23  * Two byte controls are used in Numbered Information frames.
 24  */
 25 #define IS_UI 0x03
 26 
 27 #define EBT_802_3_MASK (EBT_802_3_SAP | EBT_802_3_TYPE | EBT_802_3)
 28 
 29 /* ui has one byte ctrl, ni has two */
 30 struct hdr_ui {
 31         __u8 dsap;
 32         __u8 ssap;
 33         __u8 ctrl;
 34         __u8 orig[3];
 35         __be16 type;
 36 };
 37 
 38 struct hdr_ni {
 39         __u8 dsap;
 40         __u8 ssap;
 41         __be16 ctrl;
 42         __u8  orig[3];
 43         __be16 type;
 44 };
 45 
 46 struct ebt_802_3_hdr {
 47         __u8  daddr[ETH_ALEN];
 48         __u8  saddr[ETH_ALEN];
 49         __be16 len;
 50         union {
 51                 struct hdr_ui ui;
 52                 struct hdr_ni ni;
 53         } llc;
 54 };
 55 
 56 
 57 struct ebt_802_3_info {
 58         __u8  sap;
 59         __be16 type;
 60         __u8  bitmask;
 61         __u8  invflags;
 62 };
 63 
 64 #endif /* _UAPI__LINUX_BRIDGE_EBT_802_3_H */
 65 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp