From ecd80721b550f01bb7197a5708b86ac25afd05ea Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Tue, 13 May 2003 17:06:05 +0000 Subject: Chris Vitale : get rid of magic numbers --- kernel/linux/include/linux/netfilter_bridge/ebt_802_3.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'kernel/linux/include/linux') 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 */ -- cgit v1.2.3