1 #ifndef __LINUX_BRIDGE_EBT_802_3_H
2 #define __LINUX_BRIDGE_EBT_802_3_H
4 #define EBT_802_3_SAP 0x01
5 #define EBT_802_3_TYPE 0x02
7 #define EBT_802_3_MATCH "802_3"
10 * If frame has DSAP/SSAP value 0xaa you must check the SNAP type
11 * to discover what kind of packet we're carrying.
13 #define CHECK_TYPE 0xaa
16 * Control field may be one or two bytes. If the first byte has
17 * the value 0x03 then the entire length is one byte, otherwise it is two.
18 * One byte controls are used in Unnumbered Information frames.
19 * Two byte controls are used in Numbered Information frames.
23 #define EBT_802_3_MASK (EBT_802_3_SAP | EBT_802_3_TYPE | EBT_802_3)
25 /* ui has one byte ctrl, ni has two */
42 struct ebt_802_3_hdr
{
53 #include <linux/skbuff.h>
55 static inline struct ebt_802_3_hdr
*ebt_802_3_hdr(const struct sk_buff
*skb
)
57 return (struct ebt_802_3_hdr
*)skb_mac_header(skb
);