summaryrefslogtreecommitdiffstats
path: root/kernel/linux2.5/include
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2003-05-13 17:06:05 +0000
committerBart De Schuymer <bdschuym@pandora.be>2003-05-13 17:06:05 +0000
commitecd80721b550f01bb7197a5708b86ac25afd05ea (patch)
tree90884270792c889304052430e57329c0821daf2c /kernel/linux2.5/include
parentdfab72de51bfc929117eb0bfd8f474d9e2b20096 (diff)
Chris Vitale <csv_at_bluetail.com>: get rid of magic numbers
Diffstat (limited to 'kernel/linux2.5/include')
-rw-r--r--kernel/linux2.5/include/linux/netfilter_bridge/ebt_802_3.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/linux2.5/include/linux/netfilter_bridge/ebt_802_3.h b/kernel/linux2.5/include/linux/netfilter_bridge/ebt_802_3.h
index 9fcc8ee..b3d6c32 100644
--- a/kernel/linux2.5/include/linux/netfilter_bridge/ebt_802_3.h
+++ b/kernel/linux2.5/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 */