summaryrefslogtreecommitdiffstats
path: root/kernel/linux/include/linux/netfilter_bridge/ebt_802_3.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/linux/include/linux/netfilter_bridge/ebt_802_3.h')
-rw-r--r--kernel/linux/include/linux/netfilter_bridge/ebt_802_3.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/linux/include/linux/netfilter_bridge/ebt_802_3.h b/kernel/linux/include/linux/netfilter_bridge/ebt_802_3.h
index 9fcc8ee..b3d6c32 100644
--- a/kernel/linux/include/linux/netfilter_bridge/ebt_802_3.h
+++ b/kernel/linux/include/linux/netfilter_bridge/ebt_802_3.h
@@ -6,6 +6,20 @@
#define EBT_802_3_MATCH "802_3"
+/*
+ * If frame has DSAP/SSAP value 0xaa you must check the SNAP type
+ * to discover what kind of packet we're carrying.
+ */
+#define CHECK_TYPE 0xaa
+
+/*
+ * Control field may be one or two bytes. If the first byte has
+ * the value 0x03 then the entire length is one byte, otherwise it is two.
+ * One byte controls are used in Unnumbered Information frames.
+ * Two byte controls are used in Numbered Information frames.
+ */
+#define IS_UI 0x03
+
#define EBT_802_3_MASK (EBT_802_3_SAP | EBT_802_3_TYPE | EBT_802_3)
/* ui has one byte ctrl, ni has two */