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
5 #include <linux/types.h>
6 #include <linux/if_ether.h>
8 #define EBT_802_3_SAP 0x01
9 #define EBT_802_3_TYPE 0x02
11 #define EBT_802_3_MATCH "802_3"
14 * If frame has DSAP/SSAP value 0xaa you must check the SNAP type
15 * to discover what kind of packet we're carrying.
17 #define CHECK_TYPE 0xaa
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.
27 #define EBT_802_3_MASK (EBT_802_3_SAP | EBT_802_3_TYPE | EBT_802_3)
29 /* ui has one byte ctrl, ni has two */
46 struct ebt_802_3_hdr {
57 struct ebt_802_3_info {
64 #endif /* _UAPI__LINUX_BRIDGE_EBT_802_3_H */